Create your first C++ program and learn about its structure: the main() function and the statements
Let us start our tour of C++ with a simple program. Here is a simple program which outputs a line of text.
Let us start our tour of C++ with a simple program. Here is a simple program which outputs a line of text.
// This is my first C++ program
//It prints a line of text
# include <iostream>
void main()
{
cout << “My first C++ program ” <<endl;
getch();
}
No comments:
Post a Comment