I have a problem with my code, its supposed to be the beggining of an Invoice calculator, it runs fine as long as you answer the first question with a whole number, if anything else... weird things happen.. run it and let me know what I should do.
I recommend that you read these, and find the one that is applicable to you. Problems with cin are discussed frequently within these forums. You could also search for a similar thread.
I'm confident that the answer to one of these FAQs will help you. In fact, I can see that you are using cin for both numeric and string input which will not work well, unless you are properly cleaning up the input stream after using it each time. Section 15.3 and 15.6 will be of particular interest to you. When using cin, it is a good idea to follow good habits such as checking for invalid inputs and clearing out any carriage returns after string input. Alternatively, use getline for string input. http://www.parashift.com/c++-faq-lite/input-output.html