Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string stringToEncrypt;
- cout << "Please enter the string to encrypt" << endl;
- cin >> stringToEncrypt;
- int rightShift;
- cout << "Please enter the right shift amount" << endl;
- cin >> rightShift;
- for (int i = 0; i < stringToEncrypt.size(); i++)
- {
- stringToEncrypt[i] += rightShift;
- cout << stringToEncrypt << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement