威盛软件C++工程师笔试题和面试题答案(2)

招聘笔试题2018-11-22李一老师

  8.What are the major differences between static and non-static member f

  unctions?

  9.How do you call a regular member function from a static member functi

  on?

  Please use psendo-code to provide your answer

  10.How do you declare/define a type of pointer to a class member functi

  on?

  Please use psendo-code to provide your answer

  11.Please explain the following tyoes:

  Here is a short lise of combinations and their meanings:

  1.Reference-Can change the referenced object

  2.Const-Reference

  3.Const-Pointer-

  4.Pointer-Const-

  5.Const-Pointer-Const-

  CFoo Instance

  CFoo &ReferenceToInstance=Instance; //1

  const CFoo &ConstReferenceToInstance=Instance; //2

  const CFoo *pConstPointer=&Instance; //3

  CFoo *const pPointerConst=&Instance; //4

  const CF00 *const pPointerConst=&Instance; //5

  12.What are top-down and bottom-up approach?How do you usually use them

相关推荐

猜你喜欢

大家正在看

换一换