问答题
【问题2】若按下式计算奇校验位,则上述流程图中的(1)处应填
(5)
。
B
0
=B
1
⊕B
2
⊕...⊕B
7
⊕1
【参考答案】
(5)1
点击查看答案
<上一题
目录
下一题>
热门
试题
问答题
【C++程序】 #include<iostream> using namespace std; (1) MonthJan,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) (); }
点击查看答案&解析
问答题
【Visual Basic代码】 Private Sub Drivel_Change() Dirl.Path= (1) ’户选择的驱动器反映到目录列表框中 End Sub Private Sub Dirl_Change() Filel.Path= (2) ’用户选择的文件夹改变文件列表框内容 End Sub Private Sub sum_Click() Dim (3) As New FileSystemOject, (4) As TextStxeam ’创建自己的文件系统对象,说明自己的文本流对象 If Right (Dirl.Path,1)= Then SetmyTextFile=fso.OpenTextFile (Dirl.Path+Filel.FileNamc) Else SetmyTextFile=fso.OpenTextFile(Dirl.Path+” ’+Filel.FileName) End“ S=0 Do d=Val (myTextFilE.ReadRow) S=S+d Loop While (5) Textl.Text=Str$(S) End Sub
点击查看答案&解析
相关试题
【C++程序】 #include<iostream> us...
【Java代码】 import javA.awt.*; i...
【Visual Basic代码】 Private Sub Dri...
【Visual Basic代码】 Dim p(30,3...
【函数】 int Find(int a[][N] in...