*******
*******
*******
*******
*******
*******
*******
*******
*******
Basic Structure of C++ Program
#include<iostream>
using namespace std;
int main()
{
cout <<"Hello World"<<endl;
return 0;
getch();
}
# We use (using namespace std;) in the place of conio.h
# include<iostream> we use it for including the iostream.class file for input output Streams.
# int main() : <return type: function()> basic format.
# Each Program having its own main.
# cout << : for display any text or instruction message.
# endl; for terminating the line.
# return 0; for returning the variable.
# At the last we use a "getch()" function for stopping the Scroll for display.
Output :-
I will be posting some more C,C++ learning post.
To learn more visit my blog again.
0 comments:
Post a Comment