填空题

下列程序的输出结果是 【8】
#include<iostream>
using namespace std;
int main()
int Bum=500;
int& ref=num;
ref+=100;
cout<<num<<end1;
return 0;

【参考答案】

600
<上一题 目录 下一题>
热门 试题

填空题
设有定义语句:double x=2.5,y=4.7;int a=7;那么表达式x+a%3*(int)(x+y)%2 4的值为 【6】 。
单项选择题
有如下程序: #include<iostream> using namespace std; class sample private: int x,y; public: sample(int i,int j) x=i; y=j; void disp() cout<< disp1 <<end1; void disp()const cout<< disp2 <<end1; ; int main() const sample a(1,2); a.disp(); return 0; 该程序运行后的输出结果是
A.disp1
B.disp2
C.disp1 disp2
D.程序编译时出错
相关试题
  • 下面程序的输出结果是 【15】 。 #in...
  • 有以下程序: #include<iostream.h> ...
  • 已知:double A(double A) return +...
  • 下面是“二维向量”vector2D的定义,其中...
  • 在下面横线上填上适当的语句,完成程序。 ...