How would I divide something like this by 2. Here is the code you'll need to see.
Here is my question... I want to make char message a fake integer...which i can do by doing.. (int)message[x];Code:char message[100]; cin.getline(message, 99); for(int x=0; x<=strlen(message)-1; x++) { //... }
My main question is How would I divide the value of (int)message[x] by 2...not the value of the char but the ASCI value.
I've tried (int)message[x]/=2; and (int)message[x]=/2;
and neither of those worked, even though i knew the second one wouldn't work. Yea..how would i do that?
Edit::I don't know if it makes a difference...but I also want to return the value (int)message[x] to (int)message...although it isn't necessary. But how else would i do it, make the value of an array element in terms of ASCI equal to an integer? <---How?