I am working on some c++ stuff and I hate having to create a whole new project just to run a few things on a file.
I also don\'t like how when you creat
For a portable solution across IDE's, I call a scratch() function at the start of my main() and put exit(0); at the end of the scratch function.
scratch()
main()
exit(0);
Inside scratch(), you can call something in a different file if you want. I usually just test snippets in there.