c++程序—goto
#include<iostream> using namespace std; #include<string> #include<ctime> int main() { //goto语句 cout << "1.xxxxxx" << endl; cout << "2.xxxxxx" << endl; goto FLAG; cout << "3.xxxxxx" << endl; cout << "4.xxxxxx" << endl; FLAG: cout << "5.xxxxxx" << endl; system("pause"); return 0; }