全部题库 / C++ / 试题详情
单选题 C++
2008-10-07

阅读以下程序

如运行时输入This is example.<CR>,则程序的输出结果是(  )。

A.This 
B.This is
C.This iS a 
D.This is an exampl

参考答案

A

答案解析

本题考察C++中cin输人流对象的使用规则,其特点是以空格、回车和tab为分隔 符。因此this和is之间的空格告诉cin对象停止接收后面的数据。故正确答案为A。