单选题:有如下类定义: class AA{im a: public: int getRef()const{return&a;}

  • 题目分类:C++
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
有如下类定义:
class AA
{
im a:
public:
int getRef()const{return&a;}//①
int getValue()const{return a;}//②
void set(int n)const{a=n;}//③
friend void show(AA aA.const{cout<<a;}//④
};
其中四个函数的定义中正确的是(  )。 A.①
B.②
C.③
D.④

参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

下列符号中,正确的c++标识符是( )。

下列符号中,正确的c++标识符是( )。 A.enum B.2b C.f00一9 D._32

查看答案

(11)填空_______

(11)填空_______

查看答案

It will be easy to use for various types of retail business

It will be easy to use for various types of retail business.

查看答案

Opportunities for moving in and up in a large company may

Opportunities for moving in and up in a large company mayA.increase. B.shrink.

查看答案

Who will pay for the female guest's drink?

Who will pay for the female guest's drink?A.female guest herself B.the receptio

查看答案