单选题有如下类定义:
class Point {
private:
static int how_many;
};
______how_many=0;
要初始化Point类的静态成员how_many,下画线处应填入的内容是______。
单选题在软件开发中,需求分析阶段产生的主要文档是( )。
单选题定义如下枚举类型;enum{ Monday, Tuesday, Wednesday, Thrusday, Friday=2);,则下列语句正确的是
____
。
单选题能表示a≥10或者a≤0的关系表达式是 ______。 A) a>=10 or a<0 B) a>10|a<0 C) a>=10||a<=0 D) a>=10&&a<=0
单选题有如下程序:#include <iostream>using namespace std;class Base private: void fun1() const cout << "fun1"; protected: void fun2() eonst cout << "fun2"; public: void tim3() const cout << "fun3"; ; class Derived: protected Base public: void fun4() const cout << "fun4"; ;int main()Derived obj;obj.fun1();// ①obj.fun2();// ②obj.fun3();// ③obj.fun4();// ④return 0;其中有语法错误的语句是( )。
单选题对于函数的传址调用,下面说法中不正确的是( )。
单选题以下程序中调用cin函数给变量a输入数值的方法是错误的,其错误原因是( )。#include<iostream.h>void main(){int*p,*q,a,b;p=&a;cout<<"input a:":cin>>p;}
单选题有以下程序 #include<iostream> using namespace std; class Complex { public: Complex(double r=O,double i=0):re(r),im(i){} double real() const {return re;} double imag()const {return im;} Complex operator +(Complex C) const {return Complex (re+c.re,im+c.im);} private: double re,im; }; int main() { Complex a=Complex(1,1)+Complex (5); cout<<a.real()<<'+'<<a.imag()<<'i'<<endl; retum 0; } 程序执行后的输出结果是
单选题数据管理技术发展的三个阶段中,( )没有专门的软件对数据进行管理。Ⅰ.人工管理阶段Ⅱ.文件系统阶段Ⅲ.数据库阶段
单选题下列关于this指针的叙述中,错误的是( )。
单选题有以下程序
int f1(int x,int y)
{ return x>y? x:y;}
int f2(int x,int y)
{ return x>y? y:x;}
main( )
{ int a=4,b=3,c=5,d,e,f;
d=f1(a,b);d=f1(d,c);
e=f2(a,b);e=f2(e,c);
f=a+b+c-d-e;
cout<<d<<","<<f<<","<<e<<endl;
}
执行后输出结果是
单选题关系数据模型的三个组成部分中不包括( )。
单选题下列叙述中正确的是______。
单选题数据库设计中反映用户对数据要求的模式是( )。
单选题下列字符串中不能作为C++标识符使用的是______。
单选题有关构造函数的说法不正确的是
____
。
单选题在长度为n的有序线性表中进行二分查找,最坏情况下需要比较的次数是
单选题有如下程序: #nclude<iostremn> using namespace std; class Stack public: Stack(unsigned n=10:size(n)rep_=new int[size];top=O; Stack(Stack for(int i=0;i<size;i++)rep_[i]=s.rep_[i]; top=s.top; ~Stack()delete[]rep_; void push(int a)rep_[top]=a; top++; int opo()--top;return rep_[top]; bool is Empty()constreturn top==O; pavate: 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,1C)4,3,6,2,1 D)1,2,3,4
单选题若已定义;
inta[]={0,1,2,3,4,5,6,7,8,9},*p=a,i;
其中0≤i=≤9,则对a数组元素不正确的引用是
____
。
单选题数据库系统在其内部具有3级模式,用来描述数据库中全体数据的全局逻辑结构和特性的是( )。