try ko to mamaya sana mag work ^_^ salamat bossing di ko kasi ma do..while eh.. di din ma if() :dead:int main()
{
char choice; //declaration
printf("Press [Y] to continue, [X] to exit");
switch(choice)
{
case 'Y':
case 'y': (put your function calls or continuation statements here)
break;
case 'X':
case 'x': exit();
break;
default: printf("Invalid Choice");
}
return 0;
}
pwede mo din ilagay sa loob ng do-while loop ang switch statementtry ko to mamaya sana mag work ^_^ salamat bossing di ko kasi ma do..while eh.. di din ma if() :dead:
sana ma ok na to
ahh sge po.. do-while, for(;, while(), nested loops, pa lang po kasi tinuro sa amin eh..pwede mo din ilagay sa loob ng do-while loop ang switch statement
xxx=(80-strlen("Another Entry? [Y] or [N]: "))/2;
gotoxy(xxx,20);printf("Another Entry? [Y] or [N]: ");
gotoxy(1,21);
for(u=1;u<75;u++)printf("-");
gotoxy(26,20);gets(tryy[i]);
ex=toupper(tryy[i][0]);
ex=atoi(tryy[i][0]);
if(ex=='X')break;
if(ex=='Y')continue;