You are on page 1of 5

Program Development Environment and Setup

If you are still willing to set up your environment for C++, you need
following two software available on your computer.

Text Editor:
This will be used to type your program. Examples of few editors include
Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or
vi.

Name and version of text editor can vary on different operating systems. For
example, Notepad will be used on Windows and vim or vi can be used on
windows as well as Linux, or UNIX.

The files you create with your editor are called source files and for C++ they
typically are named with the extension .cpp, .cp, or .c.

C++ Compiler:
This is actual C++ compiler, which will be used to compile your source code
into final executable program.

Most C++ compilers don't care what extension you give your source code,
but if you don't specify otherwise, many will use .cpp by default

Most frequently used and free available compiler is GNU C/C++ compiler,
otherwise you can have compilers either from HP or Solaris if you have
respective Operating Systems.

C++ Compiler:
1) Turbo C++ was a C++ compiler and integrated development environment
and computer language originally from Borland. Most recently it was
distributed by Embarcadero Technologies, which acquired all of Borland's
compiler tools with the purchase of its Code Gear division in 2008. The
original Turbo C++ product line was put on hold after 1994 and was revived
in 2006 as an introductory-level IDE, essentially a stripped-down version of
their flagship C++Builder. Turbo C++ 2006 was released on September 5,
2006 and was available in 'Explorer' and 'Professional' editions.
2) Borland C++ is a C and C++ programming environment (that is, an
integrated development environment) for MS-DOS and Microsoft Windows.
It was the successor to Turbo C++, and included a better debugger, the
Turbo Debugger, which was written in protected mode DOS.
3) GNU is a compiler system produced by the GNU Project supporting various
programming languages. GNU C Compiler, when it only handled the C
programming language, GCC 1.0 was released in 1987. It was extended to
compile C++ in December of that year. Front ends were later developed for
Objective-C, Objective-C++, Fortran, Java, Ada, and Go among others.

4) C++Builder is a rapid application development (RAD) environment,


originally developed by Borland and as of 2009 owned by Embarcadero
Technologies, for writing programs in the C++ programming language
targeting Windows NT, OS X, iOS and Android. C++Builder combines the
Visual Component Library and IDE written in Delphi with a C++ compiler.
Most components developed in Delphi can be used in C++Builder with no or
little modification, although the reverse is not true.
5) CINT is a command line C/C++ interpreter that is included in the object
oriented data analysis package ROOT. Although intended for use with the
other faculties of ROOT, CINT can also be used as a standalone addition to
another program that requires such an interpreter. CINT is an interpreted
version of C/C++, much in the way Bean Shell is an interpreted version of
Java.
6) CodeWarrior is an integrated development environment (IDE) published
by Freescale Semiconductor for editing, compiling, and debugging software
for several microcontrollers and microprocessors and digital signal
controllers used in embedded systems.

Standard Library
The C++ Standard Library can be categorized into two parts:

 The Standard Function Library: This library consists of general-


purpose,stand-alone functions that are not part of any class. The
function library is inherited from C.
 The Object Oriented Class Library: This is a collection of classes
and associated functions.
Standard C++ Library incorporates all the Standard C libraries also, with
small additions and changes to support type safety.

The Standard Function Library:


The standard function library is divided into the following categories:

 I/O
 String and character handling
 Mathematical
 Time, date, and localization
 Dynamic allocation
 Miscellaneous
 Wide-character functions

The Object Oriented Class Library:


Standard C++ Object Oriented Library defines an extensive set of classes that
provide support for a number of common activities, including I/O, strings,
and numeric processing. This library includes the following:

 The Standard C++ I/O Classes


 The String Class
 The Numeric Classes
 The STL Container Classes
 The STL Algorithms
 The STL Function Objects
 The STL Iterators
 The STL Allocators
 The Localization library
 Exception Handling Classes
 Miscellaneous Support Library
Using Command Line to Compile C Program
1. Select [Start >> All Programs >> Microsoft Visual C++ 2010 Express
Edition >> Visual Studio Tools >> Visual Studio 2010 Command Prompt].
Run with administrator privileges.

2. Once you are in the command line, you can use any editor such as edit to
write a C program.
C:> edit myprogram.c

3. After written the program, to compile it, issue the command cl


C:> cl myprogram.c

4. During the compilation and linking, myprogram.obj and myprogram.exe


will be created.To run the program:
C:> myprogram

You might also like