<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • sap筆試試題

    時間:2024-08-13 15:59:50 面試筆試 我要投稿
    • 相關推薦

    sap筆試試題

      1.below is usual way we find one element in an array:

    sap筆試試題

      const int *find1(const int* array, int n, int x)

      {

      const int* p = array;

      for(int i = 0; i < n; i++)

      {

      if(*p x)

      {

      return p;

      }

      ++p;

      }

      return 0;

      }

      in this case we have to bear the knowledge of value type "int", the size of

      array,

      even the existence of an array. would you re-write it using template to elim

      inate all

      these dependencies?

      2. assume you have a class like

      class erp

      {

      hr* m_hr;

      fi* m_fi;

      public:

      erp()

      {

      m_hr = new hr();

      m_fi = new fi();

      }

      ~erp()

      {

      }

      };

      if "new fi()" failed in the constructor, how can you detect this problem and

      release the

      properly allocated member pointer m_hr?

      3. check the class and variable definition below:

      #include

      #include

      using namespace std;

      class base

      {

      public:

      base() { cout<<"base-ctor"< ~base() { cout<<"base-dtor"< virtual void f(int) { cout<<"base::f(int)"< virtual void f(double) {cout<<"base::f(double)"< virtual void g(int i = 10) {cout<<"base::g()"<};

      class derived: public base

      {

      public:

      derived() { cout<<"derived-ctor"< ~derived() { cout<<"derived-dtor"< void f(complex) { cout<<"derived::f(complex)"< virtual void g(int i = 20) {cout<<"derived::g()"<};

      base b;

      derived d;

      base* pb = new derived;

      select the correct one from the four choices:

      cout

      cout

      pb->f(1.0);

      a.derived::f(complex) b.base::f(double)

      pb->g();

      a.base::g() 10 b.base::g() 20

      c.derived::g() 10 d.derived::g() 20

      4.implement the simplest singleton pattern(initialize if if necessary).

      5.name three sort algorithms you are familiar with. write out the correct or

      der by the

      average time complexity.

      6.write code to sort a duplex direction linklist. the node t has overridden

      the comparision operators

    【sap筆試試題】相關文章:

    SAP筆試 -上海交大11-21

    ITT HR的筆試題目,筆試試題02-24

    sony筆試題02-18

    華碩筆試題02-18

    神龍筆試題02-18

    外企筆試題精選11-21

    畢馬威筆試題02-16

    寶潔筆試題02-18

    朗訊筆試題02-18

    南京筆試題11-21

    主站蜘蛛池模板: 在线欧美v日韩v国产精品v| 国产精品成人99久久久久91gav| 国产精品久久网| 亚洲国产精品一区二区成人片国内| 国产精品 羞羞答答在线| 国产日韩欧美精品| 久久国产精品成人片免费| 老年人精品视频在线| 国产精品美女久久久免费| 青青草国产精品久久| 国产成人精品福利网站在线| 国产在线国偷精品免费看| 中文字幕精品亚洲无线码一区| 成人国产精品日本在线观看| 国产精品一二区| 2020国产精品永久在线| 久久亚洲中文字幕精品有坂深雪| 在线观看亚洲精品福利片| 女人高潮内射99精品| 精品日本一区二区三区在线观看| 国产精品99久久久久久猫咪| 88国产精品欧美一区二区三区| 久久亚洲精品视频| 久久精品国产亚洲沈樵| 久久99国产精品久久99| 国产69精品久久久久777| 99国产精品永久免费视频| 国产精品嫩草影院AV| 国产精品亚韩精品无码a在线| 国内精品久久久久伊人av| 99在线精品一区二区三区| 国产成人精品电影在线观看| 国产成人精品日本亚洲18图| 久久精品国产秦先生| 91精品国产91久久久久久蜜臀| 久久国产亚洲精品麻豆| 国产成人精品大尺度在线观看| 国产区精品高清在线观看| 久久噜噜久久久精品66| 亚洲?V乱码久久精品蜜桃 | 久久精品无码一区二区日韩AV |