2
votes
Accepted
Pset2 vigenere how to combine key loop with message loop
I created a loop for the key as follows
I can see you did not do anything wrong with that.
I know I can't make the key loop inside the message loop since it will
run key loop * message loop ...
1
vote
Accepted
My for loop in vigenere will not execute
Is this strlen(plainText - 1) really what you want? You want one less than the length of plainText. This is subracting 1 from plainText and calling strlen on the result. Methinks it always returns 0, ...
1
vote
Accepted
vigenere - white space throws off wrap value
The code uses the same index, i, to control the plaintext and the key. On each pass through the loop, a plaintext char is ALWAYS consumed, but a key char is ONLY consumed when the plaintext is an ...
1
vote
Accepted
Misprinting the vignere cipher
Instead of printing non-alphas without encoding them, this code is printing the next encoded letter for each preceeding non-alpha. In other words, if the key was a (meaning don't encode, just echo ...
Only top scored, non community-wiki answers of a minimum length are eligible