Cheat sheet: C/C++ string input