logo - 刷刷题
下载APP
【简答题】

阅读以下说明和C++抖程序,将应填入(n)处的字句写在答题纸的对应栏内。 【说明】 下面程序的功能是计算并输出某年某月的天数。 【C++程序】 include<iostream> using namespace std; (1) Month{Jan,Feb,Mar,Art,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}; class Date{ public: Date(int year,Month m_month){ (2) =year; if (m_month<Jan‖m_month>Dec) month=Jan; else month=m_month; }; ~Date(){}; bool IsLeapYear(){ return ((year%4==0 && year%1001!=0)‖year%400==0); }; int CaculateDays(){ switch( (3) ){ case Feb:{ if( (4) )return29; e1Se return 28; } case Jan:case Mar:case May:case Jul:case AUg:case Oct: case Dec:retllrn 31; case Apr:case Jun:Case Sep:case Nov:roturu30; } }; private: int year; Month month; }; void main(){ Date day(2000,Feb); tout<<day. (5) (); }

题目标签:输出对应功能
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】有如下事件过程:Private Sub Form_Load() Show Dim Arr() As Variant Arr = Array(1, 3, 5, 7, 9, 11, 13, 15) Call converse(Arr) For i = 0 To 7 Print arr(i); Next iEnd Sub 以上程序的功能是,通过调用Converse过程,将数组Arr中的元素逆序存放并输出...

A.
Private Sub converse(dim a() as Variant ) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
B.
Private Sub converse(dim a() as Variant) Dim T Dim J As Integer J = (LBound(A) + UBound(A)) / 2 For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
C.
Private Sub converse(a() As Variant) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
D.
Private Sub converse(a() As Variant) Dim T Dim J As Integer J = Int((LBound(A) + UBound(A)) / 2) For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub

【单选题】材料的表观密度所对应的体积包括( )

A.
矿质实体体积
B.
矿质实体体积、闭口孔隙体积
C.
矿质实体体积、闭口孔隙体积、开口孔隙体积、材料颗粒间空隙体积
D.
矿质实体体积、闭口孔隙体积、开口孔隙体积

【多选题】监控平台有哪些功能?

A.
管理设备
B.
用户权限管理
C.
数据流管理
D.
录像存储管理
E.
与其它系统联动