OR, you could reverse what I already gave you:
Originally Posted by Hunter2
the only thing with that is if you want 'A' and 'a' to have the same numeric value, you'll need to test to see if it's a capital letter first and then use the correct number to subtract from it...
using namespace std;
//you could also put the subtraction inside:
same thing the other way... if you want 'A' and 'a' both to be the same, you'll need to change the case internally and then cast it to an int...