The program I'm writing needs to encrypt and/or decrypt a message entered by the user. It's suppose to get all of the message's odd characters and all of the even characters separately, then output them together in one message.
ex:
"I love programming!"
Encrypted message:
"Ilv-rgamn!-oepormig"
(the spaces should be dashes)
This is the code I have so far, we're also not allowed to use any strings, just character arrays.
Can anyone help me to even start the encryption function?? I'm pretty lost at the moment...