在下面程序的画线处填上适当的内容,使程序执行后的输出结果为1/2005。 #inc

题型:填空题

问题:

在下面程序的画线处填上适当的内容,使程序执行后的输出结果为1/2005。
#include <iostream>
using namespace std;
class Date{
public:
Date(int m=1,int y=0):month(m),year(y){}
void Print( ){cout<<month<<"/"<<year<<endl;}
(9) operator+(const Date&dl,const Date& d2);
private:
int month,year;
};
(10) operator+(const Date& dl,const Date& d2){
int year,month;
year=d1.year+d2.year;
month=d1.month+d2.month;
year+=(month-1)/12;
month=(month-1)%12+1;
return Date(month,year);
}
void main( ){
Date dl(3,2004),d2,d3(10);
d2=d3+dl;
d2.Print( );
}

考点:计算机等级考试C++二级C++笔试
题型:填空题

下列流行歌曲的歌词语意明确,没有语病的一项是[ ]

A、村里的姑娘叫小芳,长得好看又善良。(《小芳》)

B、家里盘着两条龙是长江与黄河,还有珠穆朗玛是最高的山坡。(《大中国》)

C、有一个美丽的传说,精美的石头会唱歌。(《有一个美丽的传说》)

D、放心着你的沉默,去说服明天的命运。(《牵手》)

题型:填空题

下气体中,可以用浓硫酸干燥的是①H2  ②O2③NH3④SO2⑤Cl2(  )

A.②③④⑤

B.①②③④

C.①②④⑤

D.全部

题型:填空题

对于下列变量中()是调度员潮流计算直接求出的电网运行状态量,而其他的为派生量或已知量。

A.线路首末端功率差

B.母线电压的相角

C.平衡节点发电机发电有功功率

D.系统的频率

题型:填空题

进行理论空气量计算时作出了哪些假设?

题型:填空题

春节:鞭炮( )

A.清明:春风
B.端午:粽子
C.考试:作弊
D.懒惰:上学

更多题库