提取操作符与cin.getline操作符是如何处理回车键的
提取操作符与cin.getline操作符是如何处理回车键的,不理解,书上也没查到?
提取操作符与cin.getline操作符是如何处理回车键的,不理解,书上也没查到?
msdn上有啊
The get function, in contrast, neither extracts nor stores the delimiter.
istream& getline( char* pch, int nCount, char delim = '\n' );
istream& getline( unsigned char* puch, int nCount, char delim = '\n' );
istream& getline( signed char* psch, int nCount, char delim = '\n' );
[此贴子已经被作者于2007-6-10 16:50:56编辑过]