I\'m sorry but I\'m quite new to C++ but not programming in general. So I tried to make a simple encryption/decryption. However when I added the modification to my previous code
Use :
cin.ignore ( std::numeric_limits::max(), '\n' );
to eat newlines from previous input std::cin >> op;
std::cin >> op;
header -
Other way would be :
while (std::getline(std::cin, str)) //don't use string if (str != "") { //Something good received break; }