测试goto语句
This commit is contained in:
parent
e9a0cb266e
commit
73c735a0e4
16
day5/goto_test.cpp
Normal file
16
day5/goto_test.cpp
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// 测试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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user