单选题 C++
题号 #2255257

设有定义charstr[80];以下不能将输入数据first\nsecond\n<CR>读取到数组str中的语句是(  )。

进入在线模考

参考答案

D

答案解析

D。【解析】本题考查cin流对象的几种成员函数get,getline,read及流提取符>>的使用规则。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考