Hi all,
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?
whileiforelse 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Humayoon Khan commented: haha nice =) +0
amrith92 commented: haha, nice one! ;) +6
Humayoon Khan 0 Newbie Poster
Despairy 0 Light Poster
whileiforelse 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.