comparre input to a's and f's ascii values.
a=97 and f=102
comparre input to a's and f's ascii values.
a=97 and f=102
some entropy with that sink? entropysink.com
there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka
The reason why your having problems with Case A: has to do with the fact that you haven't covered all the possible combinations of the 3 integers there are 6 different combinations and you only have 4 of them
How in the heck did I miss that?!? That was it... was missing
1, 3, 2 and 2, 3, 1 as possible combinations. Thanks!
This is what I currently have at the end of the switch...
And this gives the user an error, but only after the user inputs the integers. Is this what you meant?Code:default : cout << "Not a valid option. You did not choose a character a-f." << endl;
I think I am finished for now. I will submit it now just in case an Act of God destroys my computer before I can turn in the assignment ( I had 4 hard drives fail in a row on me until I figured out my power supply was faulty and killing the harddrives).
Overall, I think it turned out pretty good and I really appreciate all the help everyone has given. I am sure I will be hanging around here from now on as this is better than my own class for getting a grasp on the little details. Have a great evening everybody!
You still enter the 3 integers because that code still executes if you place that code after the switch it shouldn't execute you would also need to add a way to terminate the program after the error message maybe an exit call after the default message