Login    New User    Forgot Password    Help      

Compiling Your First C++ Program

GO TO INDEX

Compiling Your first c++ program

First Program
Let us start our tour of C++ with a simple program. Here is a simple program which outputs a line of text. Its output is shown in the right column.

// This is my first C++ program

//It prints a line of text # include
int main()
{
cout << My first C++ program << std::endl;
return 0;
}
Output

OUTPUT


My first C++ program

GO TO INDEX