Sunday, December 15, 2013

DEMONSTRATION TOUR

There are many C++ compilers like Borland C++ (BC++), Turbo C++ (TC++), C front, GNU C++, Zortech C++ (ZTC++) and many more available for executing C++ programs. Among these TC++ and BC++ are the two most widely used C++ compilers. These provide ideal platforms for learning and developing C++ programs. In general, both BC++ and TC++ work in the same way except that some additional features like a debugger(TD), Turbo Assembler(TSAM), a profiler(TROF) are supported by
BC++ which are beyond the scope of current user. Most of the general class of user follow TC++. The TC++ provides  a powerful environment called IDE (Integrated Development Environment) with a built-in Editor and menu bar for writing and executing programs.

Turbo C++ compiler contains the directories such as BIN, INCLUDE, BGI, LIB, CLASSICLIB, DOC, etc.
BIN                   - contains the compiler and tools
INCLUDE        - contains the header files
BGI                   - contains the graphics file
LIB                   - contains the library files
CLASS LIB      - contains library files about classes
DOC                 - contains the documentation

Execution a program wirtten in any high level language like C++ involves the following steps:

  1. Developing the source program code.
  2. Selecting the appropriate file name in which you like to save the program. This saved file is known as source code file.
  3. After creating the source code file, compile the program. After compilation, the program changes to a object file if there are no errors. If any errors exist they need to be debugged.
  4. Now, link the object code and other library codes that are required for execution. On linking correctly, an executable code is formed and if any linker error occurs, it should be corrected and recompiled again.
  5. Now, run the program to obtain the desired result.
  6. If the answer is correct then stop otherwise there are some logical errors in the program. So to remove those errors geto step 3 and repeat the steps again.

No comments:

Post a Comment