Wait all, I am sorry, I found the error in my code. It was actually fairly trivial. I just left out some brackets after the "else" statement above, but since the space was the only thing acting up, I...
Type: Posts; User: boostage
Wait all, I am sorry, I found the error in my code. It was actually fairly trivial. I just left out some brackets after the "else" statement above, but since the space was the only thing acting up, I...
for (int i = 0; i < len; ++i) { //will cycle through all the letters of the message
if (plaintext[i] == ' ') //ERROR HERE
cyphertext[i] = ' ';
else
...
I already tried that, and it apparently never registered as being equal to 32 when I input spaces.
Hi all. I am currently trying to write a program that implements the Ceasar cypher, which shifts all the letters in a message a certain number of letters forward. The way I am doing this is turning...