单选题数据库系统的核心是( )。
单选题软件调试的目的是( )。
单选题有以下程序: #include<iostream> using namespace std; class R public: R(int rl,int r2) R1=r1; R2=r2; void print(); void print()const; private: int R1,R2; ; void R::print() cout<<R 1 <<","<<R2<<end1; void R::print()const cout<<R 1 <<","<<R2<<end1; int main() R a(5,4); const R b(20,52); b.print0; return 0; 执行后的输出结果是( )。 A) 5, 4 B) 4, 5 C) 20, 52 D) 52, 20
单选题下列有关虚函数的表述中正确的是
单选题下列程序执行后的输出结果是 #included<string.h> main( ) char arr[2][4]; strcpy(arr,"you");strepy(arr[1],"me"); arr[0][3]=' cout<<arr<<endl;
单选题下列程序是用来判断数组中特定元素的位置所在,则输出结果为 #include<conio.h> #include<iostream.h> in[fun(int * s,int t,int * k) { int i; *k=0; for(i=0;<t;i++) if(s[*k]<s[i]) *k=i; return s[*k];} void main() { int a[10]={876,675,896,101,301,401,980,431,451,777},k; fun(a,10,&k); cout < < k < <‘,’ < < a[k];}
单选题下面叙述中正确的是
单选题有如下程序:
#include
using namespace std;
class Basel
{
public:
Basel(int d){cout<
单选题有如下程序: #include<iostream> using namespace std; class Base { public: void fun1(){cout<<''Base\n'';} virtual void fun2(){cout<<''Base\n'';} }; class Derived:public Base { public: void fun1(){cout<<''Derived\n'';} void fun2(){cout<<''Derived\n'';} }; void f(Base&b) { b.fun1();b.fun2();} int main() { Derived obj; f(obj); return 0: } 执行这个程序的输出结果是( )。
单选题对图书进行编目时,图书有如下属性:ISBN书号,书名,作者,出版社,出版日期。能作为关键字的是______。
单选题有以下程序: #include <iostream> #include <fstream> using namespace std; int main ( ) ofstream ofile; char ch; ofile.open ("abc.txt"); cin>>ch; while (ch!='#' ) cin>>ch; ofile.put(ch); ofile.close(); return 0; 当从键盘终端连续输入的字符为a、b、c和#时,文件abc.txt中的内容为( )。
单选题软件生命周期是指( )。
单选题程序流程图中的箭头代表的是
____
。
单选题下列关于类成员对象构造函数调用顺序的叙述中,正确的是( )。
单选题有如下类定义:
class Test
{
public:
Test(){a=0;c=0;}//①
int f(int a)const{this->a=a;}//②
static int g(){return a;}//③
voidh(intb){Test::b=b;};//④
private:
int a;
static int b;
const int c;
};
int Test::b=0;
在标注号码的行中,能被正确编译的是______。
单选题下列关于构造函数的描述中,错误的是( )。 A) 构造函数可以设置默认的参数 B) 构造函数在定义类对象时自动执行 C) 构造函数可以是内联函数 D) 构造函数不可以重载
单选题表达式10>5&&6%3的值是
单选题以下数据结构中,属于非线性数据结构的是( )。
单选题设有下列二叉树: 对此二叉树前序遍历的结果为
单选题下面程序的输出结果是______。
#include <iostream>
using namespace std;
int main()
{
int a=2,b=-1, c=2;
if(a<b)
if(b<0)c=0;
else c+=1;
cout<<c<<endl;
}