I was at a computer contest today, and I had my laptop with me sitting next to the school laptop I have to program on. I did the example problem in C++ (all the contests are in Java), and wondered, "How should I be doing this in Code::Blocks?"
All the contest problems are made so they can be solved in under a page of code, and they should each have their own executable. If I compile pr21.cpp, I would like to get pr21.exe from MinGW. (all the code for problem 2.1 is in pr21.cpp)
I believe that the only way to get this sort of functionality would be either to add a build target for each source file and get them set up correctly (huge PITA) or create a blank project for each source file. Am I correct? Is there a better way to do it, like maybe some way of not using projects at all, but individual files?
How would Code::Blocks be used in a situation like this?