皮皮学,免费搜题
登录
搜题
【简答题】
阅读以下说明和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) (); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】数据列在定义后,确定该列不允许空值的指令是(  )
A.
not nill
B.
not empty
C.
not null
D.
null
【判断题】如果向一个表中插入数据行时,如果某字段允许空值而用户没有提供具体值,则 SQL Server 自动赋 NULL 值;
A.
正确
B.
错误
【单选题】如果函数 在点 可导,则 在点 ( )
A.
连续
B.
不连续
C.
不一定连续
D.
以上都不是
【简答题】Management has granted a 10% pay rise in response to union pressure but refused to make any further concession.
【单选题】允许取空值但不允许出现重复值的约束是
A.
NULL
B.
PRIMARY KEY
C.
UNIQUE
D.
FOREIGN KEY
【单选题】下列那种病变属于液化性坏死:
A.
脑梗死
B.
心肌梗死
C.
肝梗死
D.
脾梗死
E.
肾梗死
【判断题】在创建表时,可以设定某个字段的取值允许为空值(NULL)。( )
A.
正确
B.
错误
【判断题】函数 在 点可导,则函数 在 点一定是连续的。(   )
A.
正确
B.
错误
【单选题】下列那种病变属于液化性坏死:( )
A.
脑梗死
B.
脾梗死
C.
心肌梗死
D.
肾梗死
E.
肝梗死
【单选题】在一张画中视平线只能有()条。
A.
3
B.
1
C.
5
D.
2
相关题目: