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++.
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
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<“this is my first c program”;
getch();
}
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.
click the Run option or use the shortcut key Ctrl+F9
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…
Subscribe to:
Post Comments
(
Atom
)
C language is a computer programming language.Very easy to learn and a strutured language. C language is a object oriented programming.
ReplyDeleteC++ training in chennai | Unix training in Chennai | FITA Velachery Reviews
This comment has been removed by the author.
ReplyDeleteReally happy to say your post is very impressive. Keep sharing your interesting information automatically for my future reference. Appreciations again & Thank you!
ReplyDeleteCorporate Training in Chennai
Corporate Training Companies in Chennai
Oracle DBA Training in Chennai
Linux Training in Chennai
Job Openings in Chennai
Oracle Training in Chennai
Tableau Training in Chennai
Unix Training in Chennai
Corporate Training in Adyar
Corporate Training in Annanagar
Nice blog.
ReplyDeletealso, check C & C++ course in Pune