Professional Documents
Culture Documents
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.
Standard Library
The C++ Standard Library can be categorized into two parts:
I/O
String and character handling
Mathematical
Time, date, and localization
Dynamic allocation
Miscellaneous
Wide-character functions
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