Search C++ Programs and Tutorials

Friday, July 15, 2011

How To Write, Compile and Run Your First C++ Program in Turbo C++

Leave a Comment
There are three main steps in developing a C++ program:
  1. Type your Program in Turbo C++ Editor
  2. Compile this program, and remove errors, if any.
  3. Execute the program and get output results.
Here I am teaching you all this through a set of pictures with proper titles to explain each step.
First of all, open Turbo C++ IDE to write, compile and run programs in C / C++ easily. you can double click on the short cut of Turbo C++ on desktop of your PC.
Turbo C++ IDE to write, compile and run programs in C / C++
Easyway open Turbo C++ IDE to write, compile and run programs in C / C++

 Now click on the File menu and select New option to create a new file for writing a C / C++ program
create a new file for writing a C / C++ program
Easyway C++ -click on the File menu and select New option to create a new file for writing a C / C++ program
Start typing the C++ program in new file.
typing the C++ program in new file.
Easyway C++ Programs - Start typing the C++ program in new file.
Type your C Plus Plus program, as shown in the figure below:
Type your C Plus Plus program
Easyway C++ Programs Type your C Plus Plus program
Click on File menu and select Save option or press key board shortcut F2 to save the C++ program file .
Save the C++ program file
Save the C++ program file - Easyway C++ Programs.
Save C++ file

type name and press enter

press enter to save C++ file

C++ program saved

Compile C++ program

Compiled successfully C++ program with no errors

Run or execute C++ program

output of C++ program
If You Enjoyed This, Take 5 Seconds To Share It