Go to Code -> Preferences -> Settings
and add custom settings:
{
"code-runner.runInTerminal": true
}
Finally run your c++ code and you will be able to enter values in console
More Related Contents:
- Visual Studio Code, #include saying “Add include path to settings”
- VS Code will not build c++ programs with multiple .ccp source files
- VSCode c++ task.json include path and libraries
- How to use visual studio code to compile multi-cpp file?
- How to include compiler flags in Visual Studio Code?
- How to enable C++17 support in VSCode C++ Extension
- #include errors detected in vscode
- How to Setup VS Code For C++ 14 /C ++17
- Vscode g++ it isn’t finding .cpp definition files
- Visual Studio Code formatting for “{ }”
- How to avoid errors in Vscode for putting header files in a separate directory than src
- Visual Studio Code c++11 extension warning
- How to read input when debugging in C++ in Visual Studio Code?
- What are copy elision and return value optimization?
- Why can’t the template argument be deduced when it is used as template parameter to another template?
- What are the mechanics of short string optimization in libc++?
- Dynamically load a function from a DLL
- Is local static variable initialization thread-safe in C++11? [duplicate]
- How to return local array in C++?
- Why pow(10,5) = 9,999 in C++
- Explicit template instantiation – when is it used?
- Can’t set value of static object field (error LNK2001: unresolved external symbol)
- Does constexpr imply inline?
- How does the range-based for work for plain arrays?
- In C++11, does `i += ++i + 1` exhibit undefined behavior?
- Why are forward declarations necessary? [duplicate]
- Can I use boost library for crossplatform application executing?
- Passing a pointer to a class member function as a parameter
- Why do I see 400x outlier timings when calling clock_gettime repeatedly?
- Why are iostreams not copyable?