Answer the question
In order to leave comments, you need to log in
How to run .cpp in VS separately?
For example, I am writing a task in one tab and I need to check one way, but without affecting the main one, I create a new element and when I press Ctrl + F5 to run and check it starts compiling all elements.
Question: how to launch only individual elements?
Answer the question
In order to leave comments, you need to log in
In any way probably, it is impossible to have more than 1 main'a in one project. You can comment out main in one and write in another. Or create a new project with these files (the files are not even copied to the new project when adding existing ones to it).
you can make excluded from build to one cpu and create different versions of the build.
Or use conditional compilation #if defined(MAIN1) .... #endif
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question