HI, i am writing a program in which there are many do-while loops one inside the other... when i try compile this program... it gives me a error stating.."'{' scope stack overflow.." it point to braces i have used in DO-WHILE an IF statement... plss help me to solve this problem... THANKS...
So then there really was a good reason for me to ask you exactly why you thought you needed so very indented code.
for(;;) { key = check_keys(); switch (state) { ... case STATE_MAINMENU: if (key == ENTER) { state = menuchoices[curr_menu_item]; } break; ... case STATE_WAITINPUT: if (key == ESC) { state = STATE_MAINMENU: } else { ... } break; ... } }
You want your main loop to iterate often, so it can check important global states. That means that the main loop should try to avoid to contain subroutines (or nested loops) that will take any significant amount of time.
ohh gud 1..... thanks a lot bro.... i'll try to modify the code... ONCE AGAIN THANK U very much..
Aren't your m8 h jameel telling you this? Maybe your m8 want you to fail?