单项选择题
以下程序的输出结果是
#include<iostream.h>
void main( )
int x=1,y=3;
cout < < x++ < < ",";
int x=0;x+=y * 2;
cout < < x < <"," < < y < <",";
cout < < x < < "," < < y;
A) 1,6,3,1,3 B) 1,6,3,6,3 C) 1,6,3,2,3 D) 1,7,3,2,3
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下面程序的输出结果是 #include<iostream.h> #include<string.h>void main( ) char p1[10] ,p2[10] ; strcpy(p1, abc ) ; strcpy(p2, ABC ) ; char str[50] = xyz ; strcpy(str+2,strcat(p1,p2) ) ; cout < < str; A) xyzabcABC B) zabcABC C) xyabcABC D) yzabcABC
点击查看答案&解析
单项选择题
下列程序中下画线处应填入的语句是 class Base public: void fun( ) cout < < Baseoffun < < endl; ; class Derived:public Base void fun( ) ______ 显示基类的成员函数fun cout < < Derived of fun < < endl; ; A) fun( ) ; B) Base. fun( ) ; C) Base: :fun( ) ; D) Base->fun( ) ;
点击查看答案&解析
相关试题
下面程序的结果为 #include<iostream.h...
下面程序输出的结果是 #include<iostrea...