int n; std::cin >> n; std::string s = \"\"; std::getline(cin, s);
I noticed that if I use cin, my program would hang the next t
cin
int n; std::cin >> n; std::cin.get() //<--- use cin.get() here ... std::string s = ""; std::getline(cin, s);