系统(“暂停”)使我的VS滞后像疯了似的? [英] system("PAUSE") makes my VS lag like crazy?

查看:64
本文介绍了系统(“暂停”)使我的VS滞后像疯了似的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

新来的,所以要对我温柔。我正在学习IT,我们使用VS 2017.在我的桌面PC和我们的大学PC上,我可以使用系统("PAUSE")就好了,我的笔记本电脑不会让我使用它,它让VS疯狂出于某种原因。

New here, so be gentle with me. I'm studying IT, and we use VS 2017. While on my desktop Pc and our University PCs, I can use system("PAUSE") just fine, my laptop won't let me use it, it makes VS go nuts for some reason.

为了测试这个,我尝试使用可以想象的最简单的(C ++)代码。

To test this, i tried using the simplest (C++) code imaginable.

我的代码字面上写着:

#include< iostream>

using namespace std;



int main()

{

system("PAUSE");

返回0;

}

#include <iostream>
using namespace std;

int main()
{
system("PAUSE");
return 0;
}

就是这样。然后它像普通一样编译,打开一个窗口,光标闪烁,什么都没有出现,当我试图关闭窗口时,它会花费15秒来做任何事情。然后它关闭了窗口,就好像什么也没发生过一样。

That's it. It then compiles like normal, opens a window, the cursor blinks, nothing appears, and when i try to close the window, it will take it up to 15 seconds to do anything. Then it closes the window, and acts as if nothing ever happened.

是否有VS设置我不见了?毕竟,我的桌面PC上没有这个问题,并且两者都使用相同版本的Windows 10!

Is there a VS setting i'm missing? I didn't have this problem on my desktop PC, after all, and both use the same version of windows 10 as well!

谢谢如需帮助,

LK

推荐答案

你是怎么试图关闭窗户的?

Exactly how do you try to close the window?

您是否在调试或发布模式下构建可执行文件?

Did you build the executable in debug or release mode?

哪个版本的VS和Windows?

Which version of VS and Windows?


这篇关于系统(“暂停”)使我的VS滞后像疯了似的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆