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

Source: Internet
Author: User
Tags connect

Table 3. Debugger menu commands and their hotkeys
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Hotkey menu Command function
───────────────────────────────────
F5 enlarges the active window between the entire screen and the split screen.
Alt+f5 will display to the user screen and click any key to return.
F6 between the edit window and the Watch window or the message window
Switch.
Alt+f6 If the edit window is active, go to the last
A file loaded into the editor; If the window below is alive
Move, switch between the Watch window and the message window.
CTRL+F9 Run/run Debug Run or do not debug run the program, if necessary
Compile, connect source file, if compile, connect
Debug/source debuging and O/c/c/obj
Debug information is on, run the program
To a breakpoint or to the end of a program.
Project/remove Messages Deletes the contents of the message window.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

It is the most challenging aspect of programming to judge whether a program is wrong or why it is wrong. Here you build your preventative design by:
(1). Write the code clearly, you should indent it appropriately, using the literal description and descriptive variable name.
(2). Code should be simple, focus on complex expressions in simple statements, rather than some complex statements. Turbo C code optimization mechanism will greatly improve the efficiency of the Code, and debugging, reading, modified easily.
(3). Try to build the program with a function that is simple and well defined. This facilitates debugging and analysis, and is easier to read and modify.
(4). The data required by each function should be minimized and the number of elements changed. This also facilitates the preparation of test procedures and analysis results, as well as readability and modification of procedures. It also limits the potential for the huge clutter involved in an error function to run multiple functions several times in a debug section.
(5). Be mindful of writing common functions in programs, or functions that are reusable in other programs. Writing and debugging a generic function is usually easier than writing and debugging two or more special functions.

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.