Home c++ Visual studio 2017 debug

Visual studio 2017 debug

Author

Date

Category

 Screen

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

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions