C++ Tutorial 1

Let Start With Hello World Program

Code:

#include<iostream.h>
void main()
{
clrscr();
cout<<"\nHello World";
}

Explanation:

#include-> It is the Directory where all include file stored.
iostream-> It is our header file , they are pre define use to use pre define oprators and function.
void main-> it is main function firstly it will run whe we execute our program.
clrscr()->it is use to clear screen
cout-> it is used to display the output or any content
    Syntax- cout<<"Content";

Try Out These Programs.




Share this

Related Posts

Previous
Next Post »

Powered by Blogger.

Popular Posts