Popular Download

Aug 16, 2011

Turbo C Tutorial (Basic) Part 1 making Hello This is my First Program

Hello in this article will help you in Turbo C Let's Start In History In Turbo C



The beginnings

In the early 1980s, Borland enjoyed considerable success with their Turbo Pascal product and it became a popular choice when developing applications for the PC. Borland followed up that success by releasing Turbo Basic, Turbo Prolog and Turbo C.

Turbo C had the same properties as Turbo Pascal: an integrated development environment (IDE), a fast compiler, a good editor and all that for a cheap price. Nevertheless, Turbo C was not as successful as the Pascal-sister product. First, C was not a school language such as Pascal, but rather a language for professional programming and systems development. Turbo C was therefore competing with a full field of professional programming tools (Microsoft C, Lattice CWatcom C, etc.). Turbo C did, however, have advantages in speed of compiled code, the ability for large projects to be implemented, and compared to competing compilers a very low price.

[edit]Version history


Turbo C 1.0 startup screen.
  • Version 1.0, on May 13, 1987 - It offered the first integrated edit-compile-run development environment for C on IBM PCs. The software was, like many Borland products of the time, bought from another company and branded with the "Turbo" name, in this case Wizard C by Bob Jervis[1][2] (The flagship Borland product at that time, Turbo Pascal, which at this time did not have pull-down menus, would be given a facelift with version 4 released late in 1987 to make it look more like Turbo C.) It ran in 384 kB of memory. It allowed inline assembly with full access to C symbolic names and structures, supported all memory models, and offered optimizations for speed, size, constant folding, and jump elimination.[3]

Turbo C 1.5 startup screen.
  • Version 1.5, in January 1988 - This was an incremental improvement over version 1.0. It included more sample programs, improved manuals and other bug fixes. It was shipped on five 360 KB diskettes of uncompressed files, and came with sample C programs, including a stripped down spreadsheet called mcalc. This version introduced the header file (which provided fast, PC-specific console I/O routines). (Note: The copyright date in the startup screen is 1987, but the files in the system distribution were created in January 1988.)

Turbo C 2.0 startup screen.
  • Version 2.0, in 1989 - The American release was in late 1988, and featured the first "blue screen" version, which would be typical of all future Borland releases for MS-DOS. The American release did not have Turbo Assembler or a separate debugger. (These were being sold separately as the product Turbo Assembler.) See this ad for details: Turbo C, Asm, and Debugger were sold together as a professional suite of tools. This seems to describe another release: Featured Turbo DebuggerTurbo Assembler, and an extensive graphics library. This version of Turbo C was also released for the Atari ST, but distributed in Germany only.
Note on later releases: The name "Turbo C" was not used after version 2.0, because with the release of Turbo C++ 1.0 with 1990, the two products were folded into a single product. That first C++ compiler was developed under contract by a company in San Diego and was one of the first true compilers for C++ (until then, most C++ work was done with pre-compilers that generated C code). The next version was namedBorland C++ to emphasize its flagship status and completely rewritten in-house, with Peter Kukol as the lead engineer. The Turbo C++ name was briefly dropped, eventually reappearing as Turbo C++ 3.0. There was never a 2.0 of the Turbo C++ product series.
  • 1987: Turbo C 1.0
  • 1987: Turbo C 1.1
  • 1988: Turbo C 1.5
  • 1989: Turbo C 2.0 (now with integrated debugger, also for the Atari ST)
  • 1990: Turbo C++ 1.0
  • 1991: Turbo C++ 1.01
  • 1991: Turbo C++ 2.0
  • 1992: Turbo C++ 3.0
From the start, split the product (and later in Pascal) in two lines, one for beginners and one for the professional. At first they were called "Turbo and Turbo Professional, later simply have "Turbo" and "Borland". They developed C++ to 1996 in these two lines next to the version of Turbo C++ 3.0 and Borland C++ 5.0. As with Turbo Pascal, there is also a Turbo C++ for Microsoft windows, which reached version 4.5.
Turbo C for the Atari ST, were only made for the versions 1.0, 1.1 and 2.0. The program was not being maintained by Borland, but the sources were sold and then the product under the name PureC developed some time yet.
From 1996, which is Delphi principle in C++ toolkit adapted. The Delphi based on C++ is C++ Builder.

_______________________________________________
ok Lest's start the tutorial
The First Tutorial display an output like this
"Hello this is my first Program"
Now Open your Turbo C and create New File and Type This Code Below





#include  
 <stdio.h> 

void main()
{
clrscr();
printf("Hello this is my Frist Program!");
getch();
}

After you type The Program simple Pres the command Button "Ctrl+F9" now as you can see the word of "Hello This is my First Program" at your Turbo C Screen
 Q:What is your code meaning
A: The code that you have write

  void main() -  This is the line which indicates the program has to start the execution from here. In this line void is a keyword indicating that this function is not returning anything and main is the standard function name to represent the execution start "{" and" }" This line is to indicate open and Closes the execution of Void main ()


clrscr();- This is the line Which indicate the program to clear the main screen without this code the screen of Turbo C will be repeat The line of "Hello This is my First Program" printf("Insert any text here"); -  This is the line which indicates the program to tell Turbo C to Print out the text line that you insert at the "(" ");"

  getch() - This line indicates the program to get the character input. So when this line occurs, the program waits for user input and when you press any key, it will continue the execution. Thats why generally, this function is used to prevent the output screen from closing until the user presses a key.

No comments:

Post a Comment