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