c ++ using the getline function (line a readable string including spaces)

https://blog.csdn.net/weixin_43828245/article/details/90180568

Usage: getline (cin, str); // cin is fixed in front of, behind str variable name must be a string type

 

Guess you like

Origin www.cnblogs.com/rtyxxy/p/12326511.html