-
Yes, you need to remove the first of your "cin >> temp2conv" and the cin.ignore() immediately after.
And you still have a lot of "if (something == 99 ...) ..." where you should have a "if (something == 'c' ...) ..."
If you use a construction like this:
Code:
if (tolower(something) == 'c') ...
you don't need to compare the upper case version, which makes you if-statements easier to read.
--
Mats
-
matsp or any one else ?
can they tell me where I can find the documentation about the cin >> ???
or a guide on how to use it ?
so I can learn it completely
or is there a book which defines all these functions and things which I should buy ?
-
There is a reference here:
http://www.cplusplus.com/reference/
That covers all of the standard C++ library.
There is some tutorials on this site that explain clever usage.
--
Mats