问题
单项选择题
设有定义charstr[80]以下不能将输人数据nrst\nsecond\<CR)读取到数组str的语句是( )。
A.cin.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.dn.read(str,strlen(str));
答案
参考答案:D
解析: 本题考查cin流对象的几种成员函数get,getline,read及流提取符>>的使用规则。