Home > Back-end >  Novice to solve, don't know how to change, please the great god give advice or comments
Novice to solve, don't know how to change, please the great god give advice or comments

Time:04-13

CodePudding user response:

The first add s=0;

CodePudding user response:

reference 1/f, zhao teacher reply:
beginning add s=0;

Added after the output is zero, I would be a little stupid

CodePudding user response:

The main function, y=f (I); , it can also be two sentences and sentence writing: s +=1.0/f (I); S type to float or double type, then pick up 1 # floor, s initial value,

CodePudding user response:

reference QZJHJXJ reply: 3/f
main function, y=f (I); , it can also be two sentences and sentence writing: s +=1.0/f (I); S type to float or double type, then pick up 1 # floor, s initial value,

That's the way to it, but I'd like to ask about the f (I) is how to return a responsibility?

CodePudding user response:

Function calls, n is a parameter, when we design a function f () is defined, said call this function when still need external pass in a parameter, then the actual call function, is the value of the I in this code, function is told, the n let it=I value, I will call the actual parameters,

CodePudding user response:

reference 5 floor QZJHJXJ reply:
function call, n is the parameter, when we design a function f () is defined, said call this function when still need external pass in a parameter, then the actual call function, is the value of the I in this code, function is told, the n let it=I value, I will call the actual parameters,

So, I see, thank you very much
  • Related