C++ getline method not working
问题 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 (so there isn't two programs for encrypting and decrypting) I found that the code 'getline()' method no longer works. Instead it's just ignoring it when the code is ran. Here's the code: int main(){ std::string string; int op = 1; //Either Positive or Negative srand(256); std::cout << "Enter the operation: " << std: