相关考题

单项选择题 已知int k=10,m=3,n;则下列语句输出结果是______。   printf("%d",n=(k%m,k/m)); A. 2 B. 3 C. 4 D. 5

未知题型 有如下程序 #include<iostream> #include<iomanip> using namespace std; int main(){ cout<<setprecision(3)<<fixed<<setfill('*')<<setw(8); cout<<12.345<<_______<<34.567; return 0; } 若程序的输出是: ** 12.345**34.567 则程序中下划线处遗漏的操作符是A.setprecision(3)B.fixedC.setfill('*')D.setw(8)

判断题 生态空间是国土空间的重要组成,是以提供生态产品为主体功能的国土空间,具体包括森林、草原、湿地、河流、湖泊、滩涂、自然岸线、海洋、荒地、荒漠、冰川等。正确错误

未知题型 有如下程序: #include <iostream> using namespace std; class Obj { static int i; public: Obj( ){i++;} ~Obj(){i--;} static int getVal( ){ return i;} }; int Obj::i=0; void f() {Obj ob2; cout<<ob2.getVal( ); } int main( ){ Obj ob1; f(); Obj *ob3=ew Obj; cout<<ob3->getVal( ); delete ob3; cout<<Obj::getVal( ); return 0; } 程序的输出结果是A.232B.231C.222D.221

未知题型 有如下程序 #include <iostream> using namespace std; class Base { protected: Base( ){cout<<'A'; } Base(char c) { cout<<c; } }; class Derived: public Base { public: Derived(char c){ cout<<c; } }; int main( ){ Derived d1 ('B'); return 0; } 执行这个程序屏幕上将显示输出D.BB

未知题型 有如下类定义: class MyBase { int k; public: MyBase(int n=0):k(n) { } int value( )const{ return k;} }; class MyDerived: MyBase { intj; public: MyDerived(int i): j(i) {} int getK( )const{ return k; } int getJ( )const{ return j; } }; 编译时发现有一处语法错误,对这个错误最准确的描述是D.类MyDerived的构造函数没有对基类数据成员k进行初始化

判断题 1.神经症是一种持久的心理冲突,当事人能够感觉到这种冲突并感到痛苦,同时其心理功能和社会功能也受到了影响。 正确 错误

未知题型 有如下程序 #include <iostream> using namespace std; class A{ public: virtual void funcl( ){ cout<<'A1'; } void func2( ) { cout<<'A2'; }; class B:public A { public: void funcl( ){ cout<<'B1'; } void func2( ){ cout<<'B2'; } }; int main( ) { A *p=new B; p->func1 ( ); p->func2( ); return 0; } 运行此程序,屏幕上将显示输出D.A1B2

单项选择题 关于钢筋加工的说法,正确的是()。(2015年一级建造师试题,单选题)

多项选择题 两台交换机的端口的哪两个参数必须匹配才能在交换机之间创建 EtherChannel PAgP?(请选择两项。) A、MAC 地址  B、速度  C、VLAN 信息  D、PAgP 模式  E、端口 ID