cin.getline()和getlin()的区别

一.getline()有两个重载版本,getline()是istream类的一个全局函数 函数原型 istream& getline (istream& is, string& str, char delim); istream& getline (istream& is, string& str)
posted @ 2022-07-08 09:42  小柴i  阅读(56)  评论(0编辑  收藏  举报