ErichPerish
Programmer
Hey, I'm not a profesional or anything, so this post is going to sound really stupid. Anyways I am trying to make a RPG( Text Based) whenever I try to compile, it keeps on putting the same stupid error up. Heres the code (I know it is bad)
#include <stdio.h>
#include <iostream.h>
#define Yes
#define No
#define FALSE
#define TRUE
void main()
{
char player[10];
char Answer[5];
printf("You are trapped in a third world country during the cold war\n"
printf("Your mission is to escape!\n"
printf("Pick your character\n"
printf("Spy\n"
printf("Mob Boss\n"
printf("Thief\n"
printf("Choose your character now"
gets("Answer"
if("FALSE"==Answer)
puts("Tough Noogies, thats your character\n"
"No"=FALSE // line 20
"Yes"=TRUE
}
and heres the error message
error C2059: syntax error : '}'
help would be greatly appreciated
#include <stdio.h>
#include <iostream.h>
#define Yes
#define No
#define FALSE
#define TRUE
void main()
{
char player[10];
char Answer[5];
printf("You are trapped in a third world country during the cold war\n"
printf("Your mission is to escape!\n"
printf("Pick your character\n"
printf("Spy\n"
printf("Mob Boss\n"
printf("Thief\n"
printf("Choose your character now"
gets("Answer"
if("FALSE"==Answer)
puts("Tough Noogies, thats your character\n"
"No"=FALSE // line 20
"Yes"=TRUE
}
and heres the error message
error C2059: syntax error : '}'
help would be greatly appreciated