Re: Beginner C/C++ Question
I'm not trying to be funny or unhelpful here, but we will only help with homework. By "help", I mean that you will have to demonstrate that you have made a start - show where you are up to, and then ask a specific question that is troubling you.
We do this so that you can learn from the work you have been set. If we just gave you the answer, you wouldn't actually learn anything. So, make a start, ask a specific question, just don't expect to be fed the answer.
Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
-- Sutter and Alexandrescu, C++ Coding Standards
Programs must be written for people to read, and only incidentally for machines to execute.
-- Harold Abelson and Gerald Jay Sussman
The cheapest, fastest and most reliable components of a computer system are those that aren't there.
-- Gordon Bell