单选题:有如下程序: #include usingnamespacestd; intmain() { charstr[100],

  • 题目分类:C++
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有如下程序:
#include
usingnamespacestd;
intmain()
{
charstr[100],*p;
cout<<”pleaseinputastring:”;
cin>>str;
p=str;
for(inti=0;*p!=”\0”;p++,i++);
cout<<i< retum0;
}
运行这个程序时,若输入字符串为
abcdefgabcd
则输出结果是(  )。 A.7
B.12
C.13
D.100
参考答案:
答案解析:

Please do not hesitate to call me if I can be of further ass

Please do not hesitate to call me if I can be of further assistance.A.see B.cont

查看答案

she seemed to have detected some anger in his voice.

she seemed to have detected some anger in his voice.A.heard B.noticed C.realized

查看答案

有如下程序: #include usingnamespacestd; classA{ public staticinta

有如下程序: #include usingnamespacestd; classA{ public staticinta; voidinit(){a=1;} A

查看答案

下列字符串中,不可以用作C++标识符的是(  )。

下列字符串中,不可以用作C++标识符的是(  )。A.y_2006 A.y_2006 B.____TEST__H B.____TEST__H C.Retum C

查看答案

在E-R图中,用来表示实体之间是联系的图形是(  )。

在E-R图中,用来表示实体之间是联系的图形是(  )。A.矩形 B.椭圆形 C.菱形 D.平行四边形

查看答案