I just started learning c++ today by doing Project Euler problems. My issue is that in Java, I can organize the problems into their own packages, but how do I do that in c++?
The image below shows my Java/c++ setup. The Java part works perfectly for me, however, I can't do the same in c++ (using folders and namespaces) without getting "multiple definition of main" errors.
How can I fit all the individual problems inside the "Project Euler C++" folder? Thanks
Edit: After hours of searching, I found that this post had the best and easiest solution for my problem