I want to examine a lot of little cpp files that have int main() , and run only one of them at one running . something like this -

Is there any way to do that without open new project for every cpp file ?
You can choose not to compile the files. Go to the properties, and exclude the file from build.
No. In a project, you cannot have multiple main() function.
You can rename them to test1(), test2(), test3(), and call them one by one from main(). That is what I do usually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With