| We have named the program
FIRSTCP.CPP as you can see above.
This very simple c++ program
displays the message
'Hello World!' on the screen.
Structure of C++
Program
#include Directive
The #include directive tells the compiler to
include the contents of the file enclosed
within angular brackets into the source file
main() is a
function name. All programs must have a
function called main(). The execution of a
program begins with the main() funtion.
statement cout
displays text on screen
'Hello World!'
And as you know /*COMMENTS
COME HERE www.freecprograms.com */
|