What is C++ Programming Is?
INTRODUCTION TO C++ Programming
1. Why do People Program?
2. What is C++ & OOP?
3. What do I need to program?
YOUR FIRST PROGRAM
1. Running a C++ Program
2. C++ Program Structure
We own you program */ #include int main() { cout<<"We own you"; // the first statement return(0); // the second statement } |
We own you
The structure of a simple C++ program is:
/* Comments : Name, purpose of the program your name, date, etc. */ #include int main() { statements; // comments return(0); } |
Now we will have a closer look on the structure:
3. Comments
4. Libraries
5. Functions
6. Streams
Important note: C++ is case sensitive. That means cout and Cout is not the same
thing.
7. Return
3. DATA & NUMBER SYSTEMS1. Decimals
The base 10 number system. Uses 10 digits: 0 to 9. Numbers raised to the zero power isequal to one. For example: 5 to the power 0 = 1. Base ten equivalent of the number
2600 = 2 x (10 to the power 3) + 6 x (10 to the power 2)33 = 3 x (10 to the power 1) + 3 x (10 to the power 0)
2. Binaries
The base 2 number system. Uses 2 digits : 0 and 1. Works the same as base 10 except we
multiply numbers by the powers of 2 instead. For example 110 is equal to 6 in base 10:
110 = 1 x (2 to the power 2) + 1 x (2 to the power 1) = 6(base10)
3. Hexadecimal
The base 16 number system. Uses 16 digits. 0 to 9 & "A" to "F". Works the same as base10 & base two except the numbers are multiplied by the powers of 16 instead:
1B = 1 x (16 to the power 1) + 2(B) x (16 to the power of 0) = 30(base10)
4. EXERCISES
1. Running
Find & install a compiler, type the example program and run it. Pretty simple but be surethe syntax is correct.
2. Typing
Make a program which displays your name without looking to this tutorial. Makes youlearn a lot better.
3. Converting
Convert these to decimals : 110101, 001101, 10101110Convert these to hexadecimals : 234, 324, 19394Convert these to binaries : 2F, 1B3, 234, 125
5. WHAT NOW?
1. Good programming related sites
Here are a few good sites about programming:
- http://code.box.sk --> Very good content. Has message boards.
- http://www.borland.com --> Free, shareware & commercial compilers.
- http://www.cprogramming.com --> Some original tuts.
- http://www.planet-source --> One of the biggest code archive.
1. Decimals
2. Binaries
3. Hexadecimal
4. EXERCISES
1. Running
2. Typing
3. Converting
5. WHAT NOW?
- http://code.box.sk --> Very good content. Has message boards.
- http://www.borland.com --> Free, shareware & commercial compilers.
- http://www.cprogramming.com --> Some original tuts.
- http://www.planet-source --> One of the biggest code archive.
download C++ Tutorial For Beginners subtitle indonesia samehadaku, nonton C++ Tutorial For Beginners Sub indo awsubs, C++ Tutorial For Beginners Bahasa indonesia animeindo, C++ Tutorial For Beginners Sub indonesia naruchigo mangaku, C++ Tutorial For Beginners mangachan, C++ Tutorial For Beginners mp3, C++ Tutorial For Beginners mp4, C++ Tutorial For Beginners 720p,C++ Tutorial For Beginners hd sub indo, C++ Tutorial For Beginners ost
C++ Tutorial For Beginners
,C++ Tutorial For Beginners sub indo
nonton C++ Tutorial For Beginners sub indo awsubs, sub indo C++ Tutorial For Beginners episode, episode C++ Tutorial For Beginners indonesia oploverz, Download Anime C++ Tutorial For Beginners Google Drive, download anime BD C++ Tutorial For Beginners 3gp,C++ Tutorial For Beginners mp4,C++ Tutorial For Beginners mkv, C++ Tutorial For Beginners google drive, C++ Tutorial For Beginners 480p,C++ Tutorial For Beginners 720p, sub indo C++ Tutorial For Beginners,download naruto sub indo, naruto shippuden sub indo, download naruto shipuden sub indo, nonton naruto sub indo, naruto subtitle indonesia, naruto episode indonesia, naruto episode 465 sub indo, download naruto episode, download one piece sub indo, one piece sub indo, download one piece sub indo, nonton one piece sub indo, one piece subtitle indonesia, one piece episode indonesia, C++ Tutorial For Beginners batch animeindo, download one piece episode, one piece animeindo, naruto animeindo, naruto awsubs, one piece awsubs
EmoticonEmoticon