该程序来自csdn论坛:
#include <iostream>
using namespace std;
int main() {
goto after;
return 0;
after:
cout << "after 1" << endl;
cout << "after 2" << endl;
}
这个程序在VC6.0下运行会出现死循环。看它编译后的汇编语句就能明白为什么会这样。
该程序来自csdn论坛:
#include <iostream>
using namespace std;
int main() {
goto after;
return 0;
after:
cout << "after 1" << endl;
cout << "after 2" << endl;
}
这个程序在VC6.0下运行会出现死循环。看它编译后的汇编语句就能明白为什么会这样。