Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   breaking the loop (http://www.go4expert.com/forums/breaking-the-loop-t6990/)

vaibhav_89 24Oct2007 09:12

breaking the loop
which function can i use in c/c++ so that as soon as i press a certain character then the loop breaks away goes into the next loop.
for example:

for(..;..;..;) /*loop1*/
.....; /*now if i press any 'a' when loop 1 is excuting then it should go to loop 2
goto strat;
if(getch()=='a') /* loop 2*/
for (..;..;..)

shabbir 24Oct2007 10:04

Re: breaking the loop
Duplicate of breaking the loop posted as an article. Thread closed

All times are GMT +5.5. The time now is 22:13.