How to run a program in visual studio in C++?
I can’t find it anywhere in the settings, there is no such way to simply run the code
What could be the problem and how to solve it? Where the launch icon is only “attach” but this is clearly not what you need
Answer 1, authority 100%
You open a .cpp
file that contains only the code. And you need to open the .sln
file, which will open the entire solution, if, of course, it exists. If not, create a new project and add this file to it.
Answer 2, authority 93%
Apparently, you need to first create a project, add your * .cpp file to it and try to build the entire project.
Use the project template
File - & gt; New Project - & gt; Win32 Console Application