Code:
choice=toupper(getch());
for(;;)
{
if(choice == 'A')
{
system("cls");
size=strlen(sentj);
for(x=0;x>size;x++)
{
Sleep(50);
printf("%c",sentj[x]);
}
Sleep(3000);
gold = gold + 30;
system("cls");
size=strlen(sentk);
for(x=0;x>size;x++)
{
Sleep(50);
printf("%c",sentk[x]);
}
Sleep(3000);
break;
}
else if(choice == 'D')
{
system("cls");
size=strlen(senti);
for(x=0;x>size;x++)
{
Sleep(50);
printf("%c",senti[x]);
}
Sleep(3000);
printf("<A> Agree\n<D> Dissagree\n");
choice=toupper(getch());
}
}
Errrm mite be a simple problem but im a noob but when A or D are pressed none of the output is said.
EDIT: Hehehehe lol simple mistake for(x=0;x>size;x++) had the > sign backwords spose to be <