code blocks logo

Code::Blocks



'code::blocks', when you open you code blocks, it will look like this

  1. For you first program, go to file - new - empty file or press Ctrl+shift+N
  2. We will start with basic input and output.
  3. first off its output.
Type this into your new file

# 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

Popular posts from this blog