qfedu-basic-level/day5/goto_test.cpp

16 lines
236 B
C++
Raw Permalink Normal View History

2023-06-16 16:34:00 +08:00
// 测试goto语句
#include <iostream>
using namespace std;
int main()
{
cout << "1" <<endl;
cout << "2" <<endl;
goto FLAG;
cout << "3" <<endl;
cout << "4" <<endl;
FLAG:
cout << "5" <<endl;
return 0;
}