Quote Originally Posted by Lord Slytherin View Post
Code:
void main()
Should be int main( void ), I'm sure someone's probably mentioned this by now to you.
Quote Originally Posted by Lord Slytherin View Post
Code:
gets(guess);
There's a FAQ (and probably a compiler warning, though since you use conio.h probably not in your case) about using something other than gets.
Quote Originally Posted by Lord Slytherin View Post
Code:
guess[15] = (strcmp(guess,"JAPAN") == 0) ? 0:1;
I don't know why you are doing this, but 15 is past the end of your array, so it's only pure luck that this actually "works" for you.


Quzah.