1 #include <iostream> 2 using namespace std; 3 int main() { 4 //goto语句 5 //跳过中间的语句 6 cout<<"1"<<endl; 7 goto FLAG; 8 cout<<"2"<<endl; 9 cout<<"3"<<endl; 10 cout<<"4"<<endl; 11 FLAG: 12 cout<<"5"<<endl; 13 cout<<"6"<<endl; 14 return 0; 15 }