今天没逝在dev上写了一个代码:
#include<iostream> #include<cstdlib> using namespace std; int main(){ system("这个程序自己的地址");//不便展示 puts("1"); return 0; }
然后运行,什么也不输出,也不调用什么,很正常,因为输出语句在调用语句之后
但奇怪的是,我点关闭,其中就会开始输出1
然后程序有可能关有可能继续,请问这是什么原理还是玄学?
(不知道该不该发学术,算整个活吧)