Write a program to print a string using C++.

C++ is an Object-Oriented Programming Language. C++ is an extension of C with a major addition of the class construct feature Simula97. The most important facilities that C++ adds on to C are Classes, inheritance, function, overloading, and operator overloading. The object-oriented features in C++ allow programmers to build large programs with clarity, extensibility and ease of maintenance, incorporating the spirit and efficiency of C.

#include <iostream.h> // include header file
int main()
{
cout << "Welcome To C++.\n"; // C++ statement
return 0;
} // End of example

Output:

Welcome To C++.

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.