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