有请我们的goto语句上场!!!
举个栗子:
输出5个Hello,World
#include<iostream> using namespace std; int main() { int cnt = 0; GOTO: cnt++; cout << "Hello,World!" << endl; if(cnt == 5) { return 0; } goto GOTO; }
看看,多牛掰。