题目内容

Golf balls have dimples on the appearance.

A. 对
B. 错

查看答案
更多问题

关于下列语句叙述错误的是( )。 int i=10, *p=&i;

A. p的值为10
B. p指向整型变量i
C. *p表示变量i的值
D. p的值是变量i的地址

已知:p是一个指向类A公开的数据成员m的指针,A1是类A的一个对象。如果要给m赋值为5,正确的是( )

A1.p=5;
B. A1.*p=5;
C. A1->p=5;
D. *A1.p=5;

有如下程序: #includeusing namespace std; class Amount{ int amount; public: Amount(int n=0):amount(n){} int getAmount()const{return amount;} Amount &operator+=(Amount a){ amount+=a.amount; return______; } }; int main(){ Amount x(3),y(7); x+=y; cout<

A. amount
B. this
C. &amount
D. *this

有如下定义: int a[5]={1,3,5,7,9},*p=a; 下列表达式中不能得到数值5的是( 0。

A. *(p+2)
B. a[2]
C. a[3]
D. *p+4

答案查题题库