Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help

Status
Not open for further replies.

ErichPerish

Programmer
Mar 7, 2002
1
US
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(&quot;You are trapped in a third world country during the cold war\n&quot;);
printf(&quot;Your mission is to escape!\n&quot;);
printf(&quot;Pick your character\n&quot;);
printf(&quot;Spy\n&quot;);
printf(&quot;Mob Boss\n&quot;);
printf(&quot;Thief\n&quot;);
printf(&quot;Choose your character now&quot;);
gets(&quot;Answer&quot;);
if(&quot;FALSE&quot;==Answer)
puts(&quot;Tough Noogies, thats your character\n&quot;);
&quot;No&quot;=FALSE // line 20
&quot;Yes&quot;=TRUE
}




and heres the error message

error C2059: syntax error : '}'
help would be greatly appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top