I've just started learning C++. Basically I wish to try out some basic C++ codes and operations in Codeblocks. I created a project under which I intend to put all the C++ programs in. The default ''Hello world'' program runs fine- but whenever I try to run the second program that I have written under the same project, I get an error saying ''multiple definition of 'main'...first defined here..'' .
Does this mean I have to create a new project everytime I want to run a single program? :/ Is there a better way to do what I'm trying to do here?