单项选择题
有如下类定义;
class AAint 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.④
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
若有以下定义:int a[12]=1,2,3,4,5,6,7,8,9,10,11,12;char c='a', d, g;则下列表达式中,结果为4的是( )。
A.a[g-c]
B.a [4]
C.a['d'-'c']
D.a['d'-c]
点击查看答案
单项选择题
下列关于E-R图的描述中正确的是( )。
A.E-R图只能表示实体之间的联系
B.E-R图只能表示实体和实体之间的联系
C.E-R图只能表示实体和属性
D.E-R图能表示实体、属性和实体之间的联系
点击查看答案
相关试题
若有如下程序:#include <iostream>usi...
以下程序的输出结果是( )。#include ...
有如下程序:#include <iostream>using...
若有以下程序:#include <iostream>usi...
有以下程序#include <iostream>using ...