Example:
# include
int main()
{
std:: cout << “My first C++ program ” << std::endl;
return 0;
}
Output Is: My first C++ program
C++ is a superset of C; therefore most of C language constructs apply in C++ as well. A program in C++ can be written in both C style and Object Oriented style.
No comments:
Post a Comment