goto 语句怎么用啊
举个具体的例子
2008-04-23 22:49
程序代码:
#include <iostream.h>
int main()
{
int counter=0;
Loop: //所要 goto 的地方
cout<<"This loop runs for 10 times"<<endl;
counter++;
if(counter!=10)
goto Loop;//goto 指定的地方
return 0;
}
2008-04-23 23:15