I'm a newbie in C++ programing, I wan to practice each exercise on each seperate cpp files in the same project. How can I do this because VS will result error but I still want to manage all exercises in a project and don't want to make multi-projects for each of them.
2 Answers
This is a recurring issue when you are a student and would like that each exercise works as a standalone application without the overhead of having 100+ projects within the same solution.
The trick is to exclude the file(s) by excluding it from build in its properties, as illustrated in the screenshot below.
Used this method for several years without any issue at the university. :)
1 Comment
Jämes
Excellent! Don't hesitate to mark the answer as the solution using the little tick. :)

main()entry level program. These can all exist in a single solution file though.