FreeConsole(); 屏蔽输出。 BlockInput(); 阻止键盘和鼠标的工作。 所需头文件: #include <windows.h> #include <Winable.h> 转载于:https://www.cnblogs.com/lipeiyi520/p/8484624.html