Home > Back-end >  Help bosses!!!!! How to understand the flow chart
Help bosses!!!!! How to understand the flow chart

Time:09-28

Topic is minimum in a10 data a1 to the decimal number and time, the answer to the following flow chart, I still feel very meng several times over and over again...

CodePudding user response:

Depends on the function of A function

CodePudding user response:

reference 1st floor qq_46221910 response:
depends on the function of A function
A deposit should be A array A1 to A10

CodePudding user response:

Didn't look this process, but their arrays are compared, and the secondary circulation put the value of the minimum min, intermediate storage using a temporary variable, this is often used when ordering

CodePudding user response:

The process is not very clear, but if is a pseudo code:


Int min1=INT_MAX, min2=INT_MAX;
for(int i=1; I<=10; I++) {
Cin> t; If (tThe else min2=t;//otherwise update times small value
}

The above process is to put a [1] and [2] a as the answer, the switching operation,
  • Related