need help with switch

May 7, 2011 at 7:07pm
What im trying to make is a Compound/Simple Interest Calculator and i want the user to be able to chose which one they want (a compound calc or a simple calc).
So i want the beginning question to be like this on the cmd:
Would you like to use the Compound Interest Calculator (CIC) or the Simple Interest Calculator (SIC)?
If you would like to use the CIC then type CIC.
If you would like to use the SIC then type SIC.



I think im supposed to use a switch but im not sure how.
May 7, 2011 at 7:21pm
May 7, 2011 at 8:27pm
i wanted something more specific like someone telling me. thats what this forum is for.
May 7, 2011 at 8:38pm
closed account (3hM2Nwbp)
cplusplus.com helps those who help themselves, to steal a quote from someone else.

http://cplusplus.com/doc/tutorial/control/

You would be better off using an conditional "if" structure rather than a switch in your case.
Last edited on May 7, 2011 at 8:48pm
Topic archived. No new replies allowed.