多项选择题 按总线上传输信息类型的不同,总线可以分为()。 A. 数据总线 B. 地址总线 C. 控制总线 D. 内部总线
单项选择题 一个工程中包含两个窗体,分别名为form1、form2,还有一个名为mdlfunc的标准模块。假定在form1、form2和mklfunc中分别建立了自定义过程,其定义格式为: form1中定义的过程 Private Sub frmFunction1() …… End sub Form2中定义的过程 Public Sub frmFunction2() …… End sub Mdlfunc中定义的过程为 Public Sub mdlFunction() …… End sub 在调用上述过程的程序中,如果不指明窗体或模块的名称,只有mdlFunction可以被任何工程中的任何窗体或模块调用。
未知题型 有如下程序: #include <iostream.h> using namespace std; class Stack { public: Stack (unsigned n=10):size (n) {rep_=new int [size]; top=0;} Stack (stack&s}: size (s.size) { rep_new int[size]; for (int i=0;i<size;i++ rip_[i]-s.rep_[i]; top=s.top; } ~Stack() {delete[]rep_;} void poush (int a) {rep_[topj=a; top++;} int pep() { --top; return rep_[top];} bool isEmpty() cons5 [return Top ==0;} private: int*rep_; unsigned size, top; }; int main() { Stack s1; for(int i=1;i<5;i++) s1.push(i); Stack s2(s1); for(i=1;i<3;i++} cout<<s2.pop()<<','; s2.push(6); s1.push(7); while(!s2.isEmpty()) cout<<s2.pop()<<','; return 0; } 执行上面程序的输出是A.4,3,2,1,B.4,3,6,7,2,1,C.4,3,6,2,1,D.1,2,3,4,