Saturday, December 26, 2009

EXAMPLE OF C++ PROGRAM

Below is one example of C++ program.

#include

void main()
{
         cout << "Welcome to C++";
}

The program is so simple, but it's ready to run in a C++ editor/compiler, such as Borland C++, Visual C++, Microsoft C/C++, Turbo C++, etc.

The program above will appear: Welcome to C++ as the output on the computer screen.

No comments:

Post a Comment

Please type your comment here!