Collecting word answers...

Sep 3, 2012 at 9:04pm
Hi,
I'm new at c++ - programming... I would like to write a "If Else" program that asks the user if he wants to convert Euro or Swedish krona (SEK), and depending on the answers calculates the money convertion according to the exchange rate. Can this be done and how do I do it? What should I write when declaring the variable that will collect the choice of currency input? If it was an integer I would use "int" but what shall I use when collecting a word answer?
Last edited on Sep 3, 2012 at 9:18pm
Sep 3, 2012 at 9:10pm
I suggest to call it currency.:)
Topic archived. No new replies allowed.