美文网首页
18.goto语句

18.goto语句

作者: lxr_ | 来源:发表于2020-12-16 13:40 被阅读0次

#include<iostream>

using namespace std;

int main()

{

    FLAG:

    cout << "xian" << endl;

    cout << "xian" << endl;

    goto FLAG;//会陷入死循环,一般不建议使用

    system("pause");

    return 0;

}

相关文章

网友评论

      本文标题:18.goto语句

      本文链接:https://www.haomeiwen.com/subject/sleawktx.html