Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   brekibg a loop (http://www.go4expert.com/forums/brekibg-a-loop-t6989/)

vaibhav_89 24Oct2007 08:01

brekibg a 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:
Code:

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


shabbir 24Oct2007 10:04

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


All times are GMT +5.5. The time now is 03:32.