Code::Blocks
'code::blocks', when you open you code blocks, it will look like this
- For you first program, go to file - new - empty file or press Ctrl+shift+N
- We will start with basic input and output.
- first off its output.
# include <iostream> //input/output header c++ library
using namespace std; /*this enables you to use 'cin' and 'cout'
with out putting std:: every time you want to use it*/
int main/*main funtion*/ (){
cout<<" Hello World"<<endl;
}
- After you type, click on the build icon or press Ctrl+f9
- you should get the following.


Comments
Post a Comment