visual c++写游戏窗口,但是运行的时候窗口会弹出然后自动消失
闪退一般是程序崩溃,调试检查有无空指针
没有加暂停吧!
#include <windows.h>
System("pause");