中文一二三区_九九在线中文字幕无码_国产一二区av_38激情网_欧美一区=区三区_亚洲高清免费观看在线视频

首頁 > 個人簡歷 > 求職簡歷 > 筆試題目 > 軟件工程師筆試題

軟件工程師筆試題

發布時間:2021-03-11

軟件工程師筆試題

  軟件工程師是從事軟件開發相關工作的人員的統稱。下面就由第一范文網小編為大家介紹一下軟件工程師筆試題的文章,歡迎閱讀。

  軟件工程師筆試題篇1

  考察虛繼承內存體系

  class A

  {

  public:

  A { cout<<"Construct A"<

  ~A { cout<<"Destruct A"<

  void speak { cout<<"A is speaking!"<

  };

  class B:public virtual A

  {

  public:

  B { cout<<"Construct B"<

  ~B { cout<<"Destruct B"<

  };

  class C:public virtual A

  {

  public:

  C { cout<<"Constuct C"<

  ~C { cout<<"Destruct C"<

  };

  class D:public B, public C

  {

  public:

  D{ cout<<"Constsruct D"<

  ~D{ cout<<"Destruct D"<

  };

  int main

  {

  D *p = new D;

  p->speak;

  delete p;

  }

  輸出:

  Construct A

  Construct B

  Constuct C

  Constsruct D

  A is speaking!

  Destruct D

  Destruct C

  Destruct B

  Destruct A

  軟件工程師筆試題篇2

  考察非虛析構函數

  1、class Parent

  {

  public:

  Parent{cout<<"Parent construct"<

  ~Parent{ cout<<"Parent destruct "<

  };

  class Child : public Parent

  {

  public:

  Child { cout<<"Child construct "<

  ~Child {cout<<"child destruct"<

  };

  int main

  {

  Parent *p;

  Child *c = new Child;

  p = c;

  delete p; 因為析構函數是非virtual的,故析構的時候按照指針的類型進行析構

  }

  輸出:

  Parent construct

  Child Construct

  Parent destruct

  2、 考察初始化列表的寫法

  class A

  {

  public:

  A(int x, int y, int z):a=x,b=y,c=z (1)

  A(int x, int y, int z):a(x),b(y),c(z) (2)

  private:

  int a;

  int b;

  int c;

  };

  int main

  {

  A a(1,2,3);

  }

  軟件工程師筆試題篇3

  1、考察拷貝構造函數和賦值的區別。

  class A

  {

  public:

  A { cout<<"Construct A by default"<

  A(const A& a) { cout<<"consttuct A by copy"<

  A& operator =(const A& a) { cout<<"cosnt A by operator ="<

  ~A { cout<<"Destruct A"<

  };

  int main

  {

  A a;

  A b=a; //調用拷貝構造函數

  A c(a); //調用拷貝構造

  A d;

  d=a; //賦值

  }

  輸出:

  Construct A by default //構造對象a

  consttuct A by copy //拷貝構造b

  consttuct A by copy //拷貝構造c

  Construct A by default //構造a

  cosnt A by operator = //賦值d=a

  Destruct A

  Destruct A

  Destruct A

  Destruct A

  2、 考察函數指針

  void func(char* a)

  {

  cout<

  }

  int main

  {

  void (*fp)(char*); //填空處

  fp = func; //函數名func相當于函數的地址,將其賦給函數指針fp

  char* s="helloc";

  fp(s);

  }

主站蜘蛛池模板: 国产精华最好的产品入口 | 99热在线观看免费 | 免费裸体无遮挡黄网站免费看 | 国产一区二区三区四 | 免费一级特黄毛片视频 | 无人区乱码一区二区三区 | 色悠悠久久| 亚洲一二区视频 | 亚洲第一黄网 | 国产jizz18高清视频 | 91色网站| 亚洲熟妇无码AV在线观看网址 | 天天爽天天插 | 国产成人在线网址 | 国产午夜激无码av毛片护士 | 99av成人精品国语自产拍 | 国产精品亚洲专区无码唯爱网 | 九九在线播放 | 国产精品久久久久久久久久久久久久不卡 | 高清对白精彩国产国语 | 亚洲欧洲精品A片久久99 | 成年人网站在线免费观看 | 久久亚洲国产精品123区 | 国产精品久久久久影院亚瑟 | 日产一二三四五六七区麻豆 | 天天玩天天操天天干 | www99久久com | 色综合久久综合中文综合网 | 日本无码人妻精品一区二区视频 | 精品人妻无码一区二区三区50 | av色国产色拍 | 亚洲AV无码久久三宫椿系列 | 国产91精品高清一区二区三区 | 日本欧美小视频 | 久久男人av资源站 | 精品视频在线观看一区二区三区 | 午夜免费视频福利 | 国产欧美网址 | 国产特色特黄的视频免费观看 | 国产黄大片 | 少妇又紧又深又湿又爽视频 |