The basic course of C language (VI) Turbo C programming Preliminary (3)

Source: Internet
Author: User
Tags documentation final

Step three: Implement the program
The final step in programming is to write the source code program. In this step, the pseudo code of the module is translated into the Turbo C statement.
For the source program, you should include the annotation method of the documentation to describe what the various parts of the program do. In addition, the source program should include a debugger segment to test the running of your program and allow you to find programming errors. Once the program is in good working order, you can remove the Debug section, however, the documentation should be retained as a fixed part of the source program, which is easy for you or others to maintain and modify.
Ii. input, compilation and operation of source program
C language is a kind of intermediate language, the user writes in C language program called source program, store in C language Write source program file name the last two characters must generally be ". C". The computer hardware cannot directly execute the source program, the source program must be translated into binary target program. Translation work is done by a program, which is called the compiler, the process of translation is called compiling, the result of the compilation is called the target program, the name of the target program file is usually a tight character. OBJ "or". O ". After the program is translated into the target program, it can be connected. The purpose of the connection is to make the program the final form that can be performed on the computer. At this stage, the program from the System program library to the target program connection, the result of the connection is called the execution program, the name of the executable program file in general. EXE "End.
Creating a new program in the Turbo C integrated development environment usually has the following steps:
(1). Write the source file in the editor.
(2). Generate executable files.

Type TC at the DOS prompt to enter turbo C. After entering the main TC screen, press the F3 key, you can enter the file name in the box that appears, the filename may be with. C "can also be without (at this point the system will automatically add). When you enter a filename, press ENTER to transfer the file into, and if the file does not exist, create a new file (you can also enter the file name in the method in the following example). The system then enters the edit state. You can enter or modify the source program, the source program input or modify the finished, press CTRL+F9 (simultaneously press CTRL and F9 key), then immediately compile, connect and execute, these three work is completed continuously.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.