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;

}

 

posted @ 2020-02-29 14:17  Jackie_Wang  阅读(190)  评论(0编辑  收藏  举报