next up previous
Next: Compiling the Program Up: Overview of C++ Previous: Overview of C++

Your First C++ Program

Create a file and name it as program1.cpp. Type the following statements in the file:








/* Program #1 -My first C++ program
After typing this program save it in program1.cpp in your directory
**/

#include <iostream.h>
// main ( ) is where program execution begins
main ( )
{
cout << "This is my first C++ program";
return 0;
}









 

Yousef Haik
2/23/1998