Computer Applications

Tuesday, January 5, 2010

C++ Tutorial

C++ is an object oriented language, which combines the best of the structured programming techniques of C, thus making it a very powerful language.
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