Question: I had code like that: class Vigenere { public : string key; Vigenere(string key) { for ( int i = 0; i < key.size(); ++i)
I had code like that:
class Vigenere { public: string key; Vigenere(string key) { for (int i = 0; i < key.size(); ++i) { if (key[i] >= 'A' && key[i] <= 'Z') this->key += key[i]; else if (key[i] >= 'a' && key[i] <= 'z') this->key += key[i] + 'A' - 'a'; } } And inside the main()
I had:
Vigenere cipher("KEY"); Have can I change the code that asked user to input the key instead of type the "key" in the program?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
