Traditional Culture Encyclopedia - Traditional culture - How to write process in c language?

How to write process in c language?

1, traditional flow chart:

2. Creativity: size, 10, label it, followed by 1, 2, 3... 10. Then compare 1 with the size of the second one. If 1 is greater than the second, swap the labels of 1 and 2. If 1 is not greater than 2, the second one will not be exchanged, and then the second one will be compared with the third one until the last one ends. 10 is the largest number.

3. Methods of using C language:

Read a[ 1~ 10]

max = a[ 1];

for(I = 1; I<= 10; i++)? //I searched from 1~ 10.

if(max & lt; Answer [I])? max = a[I];

maximum output

end

Flowchart:

It is an excellent method to express the idea of algorithm by graph, which is simple and clear. Flowchart has been applied in assembly language and early BASIC language environment. There is also a related PAD diagram, which is very suitable for PASCAL or C language.

Flowchart is an effective method to reveal and master the motion state of closed system. As a diagnostic tool, it can assist decision-making, let managers know clearly where the problem lies, and then determine alternative action plans.

Flow chart, also known as input-output diagram, intuitively describes the specific steps of a work process. Flowchart is very helpful to accurately understand the progress of things and decide how to improve the process. This method can be used in the whole enterprise, thus intuitively tracking and explaining the operation mode of the enterprise.

Flowcharts use some standard symbols to represent certain types of actions, such as diamond boxes to represent decisions and boxes to represent specific activities. But it is more important to clearly describe the sequence of work processes. Flowcharts can also be used to design and improve workflow, by first drawing how things should be done and then comparing them with the actual situation.