Академический Документы
Профессиональный Документы
Культура Документы
Introduction...............................................................................................................................................2
History........................................................................................................................................................2
Watches:.................................................................................................................................................5
Breakpoints:...........................................................................................................................................5
Installation.................................................................................................................................................6
1|Page
Turbo C++
Introduction
Figure 1
History
Borland Turbo C++
The first release of Turbo C++ was made available during the MS-DOS era on personal
computers. Version 1.0, running on MS-DOS, was released in May 1990. An OS/2 version was
produced as well. Version 1.01 was released on February 28, 1991, [1] running on MS-DOS. The
latter was able to generate both COM and EXE programs and was shipped with Borland's Turbo
Assembler compiler for Intel x86 processors. The initial version of the Turbo C++ compiler was
based on a front end developed by TauMetric (TauMetric was later acquired by Sun
Microsystems and their front end was incorporated in Sun C++ 4.0, which shipped in 1994). This
compiler supported the AT&T 2.0 release of C++.
Turbo C++ 3.0 was released in 1991 (shipping on November 20), and came in amidst
expectations of the coming release of Turbo C++ for Microsoft Windows. Initially released as an
MS-DOS compiler, 3.0 supported C++ templates, Borland's inline assembler, and generation of
MS-DOS mode executables for both 8086 real mode and 286 protected mode (as well as the
Intel 80186.) 3.0 implemented AT&T C++ 2.1, the most recent at the time. The separate Turbo
Assembler product was no longer included, but the inline-assembler could stand in as a reduced
functionality version.
2|Page
Soon after the release of Windows 3.0, Borland updated Turbo C++ to support Windows
application development. The Turbo C++ 3.0 for Windows product was quickly followed
by Turbo C++ 3.1 (and then Turbo C++ 4.5).
Starting with version 3.0, Borland segmented their C++ compiler into two distinct product-lines:
"Turbo C++" and "Borland C++". Turbo C++ was marketed toward the hobbyist and entry-level
compiler market, while Borland C++ targeted the professional application development market.
Borland C++ included additional tools, compiler code-optimization, and documentation to
address the needs of commercial developers. Turbo C++ 3.0 could be upgraded with separate
add-ons, such as Turbo Assembler and Turbo Vision 1.0.
Version 4.0 was released in November 1993 and was notable (among other things) for its robust
support of templates. In particular, Borland C++ 4 was instrumental in the development of
the Standard Template Library, expression templates, and the first advanced applications
of template metaprogramming. With the success of the Pascal-evolved product Delphi, Borland
ceased work on their Borland C++ suite and concentrated on C++Builder for Windows. C+
+Builder shared Delphi's front-end application framework, but retained the Borland C++ back-
end compiler. Active development on Borland C++/Turbo C++ was suspended until 2006 (see
below.)
Version 4.0J supports DOS for PC-9801 and PC/AT (DOS/V). It includes Turbo Debugger 4.0.
IDE uses XMS memory. Project manager supports linking OBJ/LIB libraries, integration with
Turbo Assembler 4.0J external assembler.
Version 5.0J was announced on 1996-07-23. Based on Borland C++ 5.0J, this version includes
IDE supporting Windows 95 and NT 3.51, and can compile 16-bit software. It includes
ObjectWindows Library 5.0, Borland Database Engine, Visual Database Tools.
This version includes Borland C++Builder 1.0, Turbo C++ 4.5 for Windows 3.1, Turbo C++ 3.0
for DOS. Later release replaces C++Builder 1.0 with Borland C++BuilderX Personal Edition.
It is a single language version of Borland Developer Studio 2006 for C++ language, originally
announced in 2006-08-06, and was released later on 2006-09-05 the same year with Turbo
3|Page
Explorer and Turbo Professional editions. The Explorer edition was free to download and
distribute while the Professional edition was a commercial product.
Figure 2
4|Page
Compiling a single line:
TC compiler provides an excellent option to compile the program line by line. This
enable the programmer to easily locate errors. For compiling the single line at a time,
select run Trace into OR pressing F7 shortcut key.
Watches:
Watches or watch expressions are used to check the value of a variable during the
program execution. It shows that how and when the value particular variable is
change. It is normally in combination with compiling single lines.
Figure 3
Breakpoints:
5|Page
the programmer can analyze necessary values. TC provide easy way to use the
mechanism for apply the breakpoints. A breakpoint applied through two simple steps:
Place the cursor on the line where you want to apply the breakpoint. Select Debug Toggle
breakpoint OR use Ctrl +F8 shortcut key. Turbo C++ automatically stops the program
execution when control reached at that particular line.
Installation
Step 1: Locate the TC.exe file and open it. You will find it at location C:\TC\BIN\.
Step 2: File > New (as shown in above picture) and then write your C program
#include<stdio.h>
int main()
{
printf("hello World!");
return 0;
}
Figure 4
6|Page
Step 3: Save the program using F2 (OR file > Save), remember the extension should be “.c”. In
the below screenshot I have given the name as helloworld.c.
Figure 5
7|Page
Step 4: Compile the program using Alt + F9 OR Compile > Compile (as shown in the below
screenshot).
Figure 6
Step 5: Press Ctrl + F9 to Run (or select Run > Run in menu bar ) the C program.
Figure 7
8|Page
Step 6: Alt+F5 to view the output of the program at the output screen.
Figure 8
9|Page