0

Pls help me. My code: https://gist.github.com/morozded/774d9d3c4575efee661d6b21290b0b97 Result my code:

~/workspace/pset2/vegnere/ $ ./vigenere bacon
plaintext: Meet me at the park at eleven am
ciphertext: Neghneogtjsqatybtsyfvgbbm

How do I work with space character? Sorry for my English.

1

Any non-letter should be returned as-is, not changed at all.

Note that copying a non-letter won't affect your position inside the keyword!

plaintext:     Meet me at the park at eleven am
effective key: baco nb ac onb acon ba conbac on
ciphertext:    Negh zf av huf pcfx bt gzrwep oz
2
  • You pushed me to the idea. I add to code: if (isalpha(s[i]) == false) { printf(" "); } and counting where using alphabetic character. Thanks for your help – Alexander Aug 9 '17 at 12:18
  • printf("%c", s[i]); – Alexander Aug 9 '17 at 12:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .