C++ language was
developed by Bjarne Stroustrup at Bell Labs in 1979.
C++ is extension version of C language. C++ provides high feature programming. 
For execute C++ program in window 7 using command prompt we have perform some. 
Required tools for system:
- Command Prompt
 
-  Turbo C
 
 
Step:-1 Install Turbo C
Install Turbo C or TC in system. ( Download TC from here and copy TC folder into C drive) 
Turbo C or TC file created in C drive.
Step:-2 Setup TC for Command Prompt.
 
Copy Bin directory path.
Set Environment variable path and its value.
 
Then press ok to close window.
Step:-3 Creating directory for C++ Programs
Open targeted drive and create directory in which all cpp program will store. Suppose we are creating directory in D drive.
Step:-4 Open notepad and create C++ program.
Write c++ program and save with .cpp extension.
Step:-5 Open Command Prompt
 
Here we use tcc command for compile C++ program. 
Executable file name will be same as cpp file name.
 
Output
 
 
No comments:
Post a Comment