Tuesday, November 25, 2014

What is C++? (The First Program)

  No comments    
categories: 
What is C++???

C++ is an Object-Oriented Programming language that is one of the most pupular languages in the world. C++ programmng language extends C programing language by adding mainly the Object-Oriented (OOP) concept to the core.
In this The C++ programming langurge totorial, you will start with the basi knowledge required to get up and running with C++. Then you will learn some basic and advanced concepts of C++ programming language (along with workabe example code and sample program)
Including C++ variable an data type, operators and expression, conditional statements or decision making, loops or repetitions, array, structure,string manipulation methods, Object-Oriented programming concept, database connectivity and manipulation, file stream, grahic programming, and other example programs source code.
To develop software, normally you need to have a software development tool. 



On the new File menu, select New. The select Project Application and enter the name of the project in the Name text box.
Then Click OK to create the project.







Example:
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
cout<<"Hello World\n"<<endl;
system("pause");
return 0;
}




It will prompt you to the save the project. Please save the project. Then you will get the code block as shown below.
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
system("pause");
return 0;
}

You won't need to remove this existring code block. Simply you will write the line of code:
count<<"Hello World\n" above the system ("PAUSE");statement.

This is Result of C++ code above






0 comments:

Post a Comment