且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio Code:从用户获取输入

更新时间:2023-12-06 14:53:28

转到 Code ->首选项 ->设置并添加自定义设置:

Go to Code -> Preferences -> Settings and add custom settings:

{
   "code-runner.runInTerminal": true
}

最后运行你的 C++ 代码,你将能够在控制台中输入值

Finally run your c++ code and you will be able to enter values in console