I can't give you a "C or C++" answer as even though they seem alike they both have their own place in the programming world.

I can, however, suggest that copying solutions to problems is not...