Sunday, 2 August 2015

How to run a c++ program


Hai, this tutorial will teach you how to run a c ++ program, although you don’t have much knowledge about it.
Let me something tell about C++. C++ is a middle-level programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs. C++ runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

In the early 1970s, Dennis Ritchie of Bell Laboratories was engaged in a project to develop a new operating system.  Ritchie discovered that in order to accomplish his task he needed the use of a programming language that was concise and that produced compact and speedy programs. This need led Ritchie to develop the programming language called C.

     In the early 1980's, also at Bell Laboratories, another programming language was created which was based upon the C language.  This new language was developed by Bjarne Stroustrup and was called C++. 


Bjarne Stroustrup
Developed at AT&T bell laboratory

The C++ program is written in high level language and it cannot be directly understand by the system, so a compiler(converts high level language to machine level language) is needed.
I prefer Turbo c++ compiler in which we can compile both c and c++ programs.
Let we start our coding…..
In order to program we need a compiler so download Turbo c++ software
Click the Download
If you have Internet Download Manager click Start Download otherwise it will be normally downloaded in the web browser.
Then Install the Turbo c++
Click The Install
Then Installing will be started
After the installation completed the Turbo c++ compiler will be opened with a pre-defined graphic program.
[Note: press ALT+Enter to make the compiler minimize and maximize.]
Then go to FILE click new
So after the new screen is opened save it as filename.cpp
For example demo.cpp and click OK
SO type the following simple C++ program to print “This is my first c++ program” in the output screen
void main()
cout<<“this is my first c program”;

After typing the program save it again,  we have to compile the program, to compile click the Compile option or you can use the short cut key  Alt+F9

Then it checks for any error and it will display the number of errors and warnings. If the program is right it will show the error and warnings as 0.

Then it is time to run the program and get the output.
click the Run option or use the shortcut key Ctrl+F9

Then the output will be displayed

we have successfully got the output.
Thus the simple program in C++ is implemented successfully.
In the upcoming tutorials I will teach C++ and the Object Oriented Concepts  more specifically…


  1. C language is a computer programming language.Very easy to learn and a strutured language. C language is a object oriented programming.
    C++ training in chennai | Unix training in Chennai | FITA Velachery Reviews

  2. This comment has been removed by the author.

  3. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai