📅  最后修改于: 2022-03-11 14:44:45.777000             🧑  作者: Mango
/* cin stops taking input on whitespace encounter
* so if you pass "Prakhar Patel" into cin>>name;
* only "Prakhar" will be stored into name.
* "Patel" will stay in stream and will come into next cin statement.
*/
getline(cin,fullname,'\n'); //use this to capture input stream till \n