设有定义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));
A.cin.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.dn.read(str,strlen(str));
第1题
设有定义charstr[80];以下不能将输入数据first\nsecond\n读取到数组str中的语句是()。
A.cin.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str,strlen(str));
第2题
A.cin.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str,strlen(str));
第3题
A.cin.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str,strlen(str));
第4题
A.in.get(str,strlen(str))
B.in.getline(str,strlen(str))
C.in>>str
D.in.read(str,strlen(str))
第5题
设有定义:,以下不能将一行(不超过80个字符)带有空格的字符串正确读入的语句或语句组是()。
A.A
B.B
C.C
D.D
第7题
设有定义 :char s[81];int i=0;, 以下不能将一行 (不超过 80 个字符 ) 带有空格的字符串正确读入的语句或语句组是
A)gets(s);
B)while((s[i++]=getchar())!= ' \n ' );s[i]='\0';
C)scanf("%s",s);
D)do{scanf("%c",&s[i]);}while(s[i++]!='\n');s[i]='\0';
第8题
A.ein.get(str,strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str,strlen(str));
第9题
A.cin.get(str, strlen(str));
B.cin.getline(str,strlen(str));
C.cin>>str;
D.cin.read(str, strlen(str));
第10题
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!