Hi,
I don't get what is happening with this code.
Unbelivable, the output of the program is:Code:// BEGIN DEBUG iNTies=0; printf("iNTies: %d\n", iNTies); if (iNTies!=0) { printf("Checked all players, player %d has winned", WinningPlayer); AskForAnyKeyStroke(); } else { printf("We have a tie\n"); AskForAnyKeyStroke(); } // END DEBUG
Any idea? I really don't get it, iNTies was previously declared as an int (it is a local variable of a function).Code:iNTies: 0 We have a tie
TIA & Regards ...