|
systat (January 1, 1970 at 12:59 am)
int main(void) is not necessary in C++...
CharlestonChew03 (January 1, 1970 at 12:59 am)
Now make a program that automatically finds the random number lol :PI think that would actually look something like this{int answer = 1;do { answer++ }while(answer != iGumballs);if(answer == iGumballs) cout << "The Answer Is " << answer;}of course you would have to place that code in the game somewhere where it is not going to cause an error... :D
commanderpopinfresh (January 1, 1970 at 12:59 am)
i got a problem though, when i start the game everything is fine but when i enter i guess ihave to enter it twice for it to "register"
commanderpopinfresh (January 1, 1970 at 12:59 am)
all of your tutorials are magnificant
deryni21 (January 1, 1970 at 12:59 am)
to clear some things up void is now obselete and is bad practive to write it so please disregard this int main(void)do this int main()
allasktulu (January 1, 1970 at 12:59 am)
its called modulus (%)It take the rest of a division5/2 = 2 rest 1 so 5%2 = 1
Neppy101 (January 1, 1970 at 12:59 am)
Nice tutorials!
resatti (January 1, 1970 at 12:59 am)
whats Modgules
y35n00b5 (January 1, 1970 at 12:59 am)
sorry i confused you...thanks for helping, i meant to say that i putcin.clear();
karlhraum (January 1, 1970 at 12:59 am)
cin.clear |