Page 11 - Modular_V1.1_Flipbook
P. 11
Creating the “Hello World” Program
Type the following code in the Turbo C++ window.
#include<iostream.h>
#include<conio.h>
void main( )
{
cout<<”Hello World”;
}
Saving a Program
Perform the following steps to save a file:
Step 1 Click on the File menu. A drop-down menu appears.
Step 2 Select the Save option. The Save File As dialog box appears.
Step 3 Type a file name in the Save File
As box. In this case, we have typed
Hello.cpp.
Step 4 Click on OK button. The file will be
saved with the given name. The file
name appears on top-center of the
file in place of NONAME00.CPP.
Compiling a Program Saving a program Save File As dialog box
After saving a program, you need to compile the program to check whether it contains any
warning or error. To compile a program, perform the following steps:
Step 1 Click on Compile menu from the menu bar.
Step 2 Select the Compile option.
The Compiling popup
notification box appears. If
a program has any warning
or error, their number will
be displayed. In this case it
is 0. Compiling a program Compiling screen
Tech
Funda Shortcut key to save a file is F2.
Shortcut key to compile a program is Alt + F9.
Introduction to C++ 9

