#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; }