Friday, 25 January 2013

GETTING STARTED c++

GETTING STARTED C++

A computer cannot understand our language that we use in our day to day conversations, and likewise, we cannot understand the binary language that the computer uses to do it’s tasks. It is therefore necessary for us to write instructions in some specially defined language like C++ which is like natural language and after converting with the help of compiler the computer can understand it.

C++ COMPILER

A C++ compiler is itself a computer program which’s only job is to convert the C++ program from our form to a form the computer can read and execute. The original C++ program is called the “source code”, and the resulting compiled code produced by the compiler is usually called an “object file”.
Before compilation the preprocessor performs preliminary operations on C++ source files. Preprocessed form of the source code is sent to compiler.
After compilation stage object files are combined with predefined libraries by a linker, sometimes called a binder, to produce the final complete file that can be executed by the computer. A library is a collection of pre-compiled “object code” that provides operations that are done repeatedly by many computer programs.
compling and linking process c++ program

Using Turbo C++ Compiler

The first and frequently used method for creating program is Turbo C++'s Integrated Developement Enviornment (IDE). To start IDE type TC at DOS prompt. Or seach the file TC.EXE in your computer and Run it.
Your IDE will look like this..
IDE
1. Now type sample program on Editor
2. Click on Compile menu choose Compile option or press Alt+F9
3. Click on Run menu choose Run option or press Ctrl+F9
4. If there is no error output will be displayed on User Screen
Before we begin to learn to write meaningful programs in C++ language, let us have a look at the various buliding block of C++ language, also called elements of C++ language....

No comments:

Post a Comment