cin vs getline vs cin.getline
drop all `'\n'` except last one (just leave it in the buffer,won't get it and will finally drop it).
read until `'\n'` and replace `'\n'` with `'\0'`.
same with getline, replace `'\n'` with `'\0'`. but used for c_string.