Home > Back-end >  O give directions! VC of a few problem
O give directions! VC of a few problem

Time:03-24


Really for bosses to give directions, has just started to learn vc + +, these questions really look not to understand ah

CodePudding user response:

Don't understand, look not to understand what is ghost? Look not to understand? Look not to understand if the code is a fundamental problem ~

Averaging: the code to see s variables, obviously is not defined, double/float s; Need to define the first, and then cycles I & lt;=10, because I start from 1;

S/=10; Averaging;

Header file, the title has given, if I did not understand this, in fact, the next question to ask yourself, understand? Learn how to make the programming?

The second empty, through output is n, obviously want to give the assignment to n. In the c and n, obviously the small assigned to n; N=c;
8. Break; Exit the loop; M is the smallest, n is the largest;

Mr Efforts, the results may not the same ~
  • Related