“一件预计可能会出错的事情,往往一定会出错。”“一件事情出错,其他事情也跟着错。”类似的话在揭示人们什么()

A:决策的制订与实施一定要果断且富有信心,否则就很难实现。 B:制订计划应树立起权变的意识,问题出现时应立即制定出相应的应变计划 C:应变计划的制定是计划工作的一部分内容,应在计划过程中及早予以考虑,不能等到出现问题时再仓促应对。 D:要注意认真分析事物之间的关联性,以期得到正确的结论

在清管器运行平均速度一定的条件下,(),运行时间越长。

A:运行距离越短 B:运行距离越长 C:与距离无关 D:不一定

若程序中使用的变量未设置初始值,则 ______ 。

A:编译时会一定出错 B:运行时一定出错 C:连接时会一定出错 D:运行结果可能出错

数据出错的种类是( )。

A:数据内容出错 B:数据多余与不足 C:数据的延续 D:以上都是

有如下程序:
#include<iostream>
using namespaee std;
class Toy
public:
Toy(char *_n)strcpy(name,_n);count++;
~Toy( )count--;
char *GetName( )return name;
static int getCount( )return count;
private:
char name[10];
static int count;

int Toy::count=0;
int main( )
Toy t1("snoopy"),t2("Mickey"),t3("Barbie");
tout<<t1.getCount( )<<end1;
return 0;

运行时的输出结果是( )。

A:1 B:2 C:3 D:运行时出错

有如下程序:
#include<iostream>
using namespace std;
class A
public:
A(int i):rl(i)
void print( )cout<<’E’<<r1<<’-";
void print( )constcout<<’C’<<r1*r1<<’-’;
private:
int r1;

int main( )
A a1(2); const A a2(4);
a1.print( ); a2.print( );
return 0;

运行时的输出结果是( )。

A:运行时出错 B:E2-C16- C:C4-C16- D:E2-E4-

有如下程序:
  #include
  using namespace std;
  class Toy{
  public:
  Toy(char* _n) { strcpy (name,_n); count++;}
  ~Toy( ){ count--; }
  char* GetName( ){ return name; }
  static int getCount( ){ return count; }
  private:
  char name[10];
  static int count;
  };
  int Toy::count=0;
  int mail( ){
  Toy t1(“Snoopy”),t2(“Mickey”),t3(“Barbie”);
  cout<  return 0;
  }
  运行时的输出结果是

A:1 B:2 C:3 D:运行时出错

有如下程序
  #include
  using namespace std;
  class A {
  public:
  A(int i):rl(i) {}
  void print( ) {cout<<’e’<  void print( ) const {cout<<’C’<  private:
  int rl;
  };
  int main( ){
  A al(2); const A a2(4);
  Al.print( );a2.print( );
  Return 0;
  }
  运行时的输出结果是

A:运行时出错 B:E2-C16- C:C4-C16- D:E2-E4-

微信扫码获取答案解析
下载APP查看答案解析