arrays - Punktion Marks as Chars in C# -
I want to write a caesar cipher (D) encode, but I'm stuck in punctuation marks. I am using a four array for single letters, but punctuation is not copied from the string to the array.
Is there an option to do that I am trying to use it ['A', 'B', 'C', 'D', 'E', 'F', ' G ',' A ',' H ',' I ',' J ',' K ',' L ',' M ',' N ',' O ',' P ',' Q ',' R ' , 'S', 't', 'you', 'v', 'w', 'x', 'y', 'z'}; (Int i = 0; i.e.l.to.to encrypt.language; i ++) {for (int j = 0; j and lt; alphabet langeth; j ++) {if (toincript [ii] == alphabet [Ja]) {encrypted I] = alphabet [(j + c)% 25]; }}}
Thanks for your time and sorry for the stupid question :)
'A', 'B', ' C, D, E, F, G, H, I, J, K, L, I, N, (Int i for 'p', 'q', 'r', 's', 't', 'u', 'v', 'y', 'x', 'y' 'z'}; = 0; i & lt; toEncrypt.Length; i ++) {Encrypted [i] = to encrypt [i]; // First copy the same character, if the character is in the alphabet (int jm = 0; j andLT; alphabet.langith; J ++ (if (toEncrypt [i] == alphabet [j]] {encrypted [i] = alphabet [(j + c)% 25];}}}
Comments
Post a Comment