题目内容

class A{ public: void setA(int); private: int a; }; class B{ public: void setB(int); private: int b; }; class C:public A, private B{ public: void setC(int, int, int); private: int c; }; void A::setA(int x){ a = x; } void B::setB(int x){ b = x; } void C::setC(int x, int y, int z){ setA(x); setB(y); c = z; } int main(int argc, const char * argv[]) { C obj; obj.setA(5); // A obj.setB(6); // B obj.setC(6, 7, 9); // C return 0; } main函数中哪条语句是错误的

A. 语句
B. 语句
C. 语句

查看答案
更多问题

I tried to compute the cash value of the ponies and horse boxes.

A. criticize
B. swing
C. convey
D. calculate

Carers from all over the UK lobbiedParliament last week to demand a better financial deal.

A. originated
B. refined
C. persuaded
D. conserved

We all unconsciously erectbarriers against intimacy.

A. build
B. detect
C. thrill
D. twist

The boss was making a terrible mistake, but no one had the gutsto tell him.

A. confidence
B. courage
C. access
D. ability

答案查题题库