填空题

设有定义语句:double x=2.5,y=4.7;int a=7;那么表达式x+a%3*(int)(x+y)%2/4的值为 【6】 。

【参考答案】

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

单项选择题
有如下程序: #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.程序编译时出错
填空题
数据流图有两种典型的结构形式,它们分别是变换型和 【5】 。
相关试题
  • 下面程序的输出结果是 【15】 。 #in...
  • 有以下程序: #include<iostream.h> ...
  • 已知:double A(double A) return +...
  • 下面是“二维向量”vector2D的定义,其中...
  • 在下面横线上填上适当的语句,完成程序。 ...