Home > Back-end >  How to realize from the lower to the upper part of the cycle, and don't have to goto statements
How to realize from the lower to the upper part of the cycle, and don't have to goto statements

Time:06-06

CodePudding user response:

 while (XXX) 
{
While (XXX)
{
break;
}
}

CodePudding user response:

Try to goto statements where the continue; Performed from the very beginning, but gets they only want to be in circulation in the body

CodePudding user response:

 char t_date [15]. 

While (1)
{
If (gets (t_date) [0]=='\ 0');
Else if (strlen (t_date) & lt; 7) printf (" error "\ n");
The else break;
}
Printf (" reault=% s \ n ", t_date);

Try this period, I lean a little than you

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related