EmperorFool
Deity
Oops, thanks xienwolf for catching the missing *. That's the danger of "coding" in Notepad.
My guess is that the header (.h) file doesn't match the .cpp file for the getYieldChangeArray() function. Make sure they look the same: int * and empty parens (). If they match, make sure you do a full rebuild. It sounds like the header file might still be a bare int.
Regarding "Array", I only added that to match all the other similar attributes that have the same functions. You are correct that you could call it billyBobAndFrankAreMean() if you wanted.
In getYieldChange(int i), you are asking for a single yield change value. In getYieldChangeArray(), you are asking for the whole array of values. This is necessary because setYieldChangeHelp() expects and array of values. "int *" means array of "int"s, and empty parens () means that it doesn't require any information passed to it to do its work. You need to tell getYieldChange(int i) which yield to return, whereas getYieldChangeArray() returns them all.
My guess is that the header (.h) file doesn't match the .cpp file for the getYieldChangeArray() function. Make sure they look the same: int * and empty parens (). If they match, make sure you do a full rebuild. It sounds like the header file might still be a bare int.
Regarding "Array", I only added that to match all the other similar attributes that have the same functions. You are correct that you could call it billyBobAndFrankAreMean() if you wanted.
In getYieldChange(int i), you are asking for a single yield change value. In getYieldChangeArray(), you are asking for the whole array of values. This is necessary because setYieldChangeHelp() expects and array of values. "int *" means array of "int"s, and empty parens () means that it doesn't require any information passed to it to do its work. You need to tell getYieldChange(int i) which yield to return, whereas getYieldChangeArray() returns them all.