For this assignment, I have to take a user's input and keyword and encrypt it into a Vigenere cipher. The encryption coding is done along with pretty much everything else, but I'm having trouble figuring out how to call the function.
The problem is there towards the bottom at cout << Encode. There aren't enough arguments in the function call, but I'm not sure what the third argument should be. Once I figure out what it is, then it should in theory output the encrypted text.
tl,dr; I need a third argument for my function call and I don't know what it is.
Also, how could I do that with a for loop? I tried something like that initially (based this off a caesar cipher program) but couldn't get it to compile
I tried letters, but it doesn't output the encryption properly
Then you probably have a problem with the encryption routine. :)
Lines 21-22: place can be bigger than 52 (can be 125) so that after subtracting 26, place will still be bigger than 26 and not found in the map.
Line 25: You're setting retmsg equal to a single character each time through the loop. After completing the loop retmsg will contain only the the last character translated (assuming it was found).