Home > Back-end >  The great god help me
The great god help me

Time:09-30

In class defines a function of the output - 1, but when debugging function is defined as void complains, double output - 10, int outputs - 16299776 other forms is also wrong, always behind the results out some more, can you tell me why

CodePudding user response:

Dizzy, GetArea function has no return value and return - 1;
Function returns a value, don't write return return value, the compiler will put the eax register current information as the return value returns, register information is uncertain, so the return value is not sure

CodePudding user response:

reference 1st floor qybao response:
, GetArea function has no return value, plus the return - 1;
Function returns a value, don't write return return value, the compiler will put the eax register current information as the return value returns, register information is uncertain, so the return value is not sure

Understand understand ( ̄?  ̄) thank god grant instruction
  • Related