turbo c语言教程,turbo c语言教程(Turbo C language tutorial).doc

本文详细介绍了使用TurboC进行基本C语言编程的三个步骤:问题分析、程序概要设计及程序实现。在问题分析阶段,确定输出、输入变量和无限步算法。概要设计阶段通过伪代码描绘程序结构。关键词涉及C语言、程序设计方法和算法开发。
摘要由CSDN通过智能技术生成

turbo c语言教程(Turbo C language tutorial)

turbo c语言教程(Turbo C language tutorial)

Turbo, a basic C programming steps

The program design method consists of three basic steps:

The first step: analysis of the problem.

The second step: to draw the outline of the program.

The third step: the implementation of the program.

3a. programming

3b. testing and debugging program

3C. provides data print results

Here, we explain the details of each step.

The first step: analysis of the problem

In this step, you must:

A. as a solution to the problem, determined to generate data (output). As a sub step

A part, you should define the output variables.

B. determine the output data (called input), as a part of this step, you should define

Input variables.

C. developed an algorithm to obtain the output from the input in finite steps. This algorithm is defined as structured

The order of operations, so as to solve the problem in finite steps. Digital issues, including the algorithm gets the output

In the calculation, but for non numeric problems, this algorithm includes many text and image processing operations.

The second step: to draw the outline of the program

In this step, you must use some sentences (pseudo code) to draw the outline of the program. Corresponding to each sentence

A simple procedure. For a simple procedure, by listing the program execution sequence of action,

Can directly generate pseudo code. However, for some complex procedures, you will need the general process organized

To organize. In this regard, should be designed with the top-down method.

When using the top-down design method, you need to split up into several segments to complete the program. List each paragraph

To achieve the task, the program will have a profile, this called main module. When a task is listed in the main module,

Only to be identified by its name, not pointed out how the job will be done. The contents of this program for design

The next stage to discuss. The program is divided into several tasks is the preliminary design of the program

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值