본문 바로가기

Computer General/C++ development from the beginning

How to start C++ for beginners

As you might know, we should have a developing tool and a debugger in order to start to program C++.

Go to google -> Find CodeBlock -> Click download -> Click Download Binary -> Download IDE binary file by different OS environment.


#include <iostream>    // preprocessor directive ==> File!

using namespace std;    //standard library : another thing that is built in C++ ==> Library!

int main(){        //What type of data you're gonna working with(int) - Name of the function(main)

cout<<"Hello World!"<<endl; 

return 0;            //return value

} //opening and closing curly braces


//Function : All computer programs are made up of functions. Functions are things you want computer to do.

All functions are made up of statements, basically instructions


* cout : output stream object

* << : Stream insertion operator

* endl : End line, or go to the next line


These are the basic stuff how a computer program is made.

'Computer General > C++ development from the beginning' 카테고리의 다른 글

Address Operator & Pointer  (0) 2014.12.12
Beginning Loop  (0) 2014.12.12
Beginning Arrays  (0) 2014.12.12
User Defined Functions  (0) 2014.12.12
Beginning Math Functions  (0) 2014.12.12