Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 130 - CoreGPT(Podar)_Flipbook_C8
P. 130

    Menu Bar:  It  contains
                                                                                                  different  menus like File,
                                                                                                  Edit, Search, Run, Compile,
                                                                                                  Debug,  Project,  Options,
                                                                                                  Window  and Help.  These
                        Editor: This  is  the                                                     menus help  user  to  do
                        main blue area where                                                      various  tasks like create  a
                        users can  write and                                                      new  file,  save  a  program,
                        edit programs.                                                            compile a program and run
                                                                                                  a program.

                                                                                                    Status  Bar:  It provides
                                                                                                  shortcut keys to perform
                                                                                                  various actions like save,
                                                                                                  open and compile.
                                                              Turbo C++ window
                      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.

                                                  Saving a program      Save File As dialog box

                      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

                      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.

                    128     Premium Edition-VIII

| 125 126 127 128 129 130 131 132 133 134 135 |