题目内容:
设有定义charstr[80];以下不能将输入数据first\nsecond\n<CR>读取到数组str中的语句是( )。
A.cin.get(str,strlen(str)); B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str,strlen(str));
参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析: