A player given a second yellow card in the same game will be dismissed with a red card.
查看答案
The score of a match can be altered after the match, if later evidence shows that decisions were incorrect.
A. 对
B. 错
若有以下类T说明,函数fFriend的错误定义是( )。 class T { int i; friend void fFriend(T&,int) ; };
A. void fFriend(T &objT, int k) { k = objT.i; }
B. void fFriend(T &objT, int k) { objT.i = k; }
C. void T::fFriend(T &objT, int k) { k += objT.i; }
D. void fFriend(T &objT, int k) { objT.i += k; }
若有以下类Z说明,函数fStatic中访问数据a错误的是( )。 class Z { static int a; public: static void fStatic(); }; int Z::a = 0 ; Z objZ ;
A. void Z::fStatic(){ Z::a = 0 ; }
B. void Z::fStatic(){ Z::a = 1; }
C. void Z::fStatic(){ a = 1; }
D. void Z::fStatic(){ this->a = 0 ; }
若有以下说明,对n的正确访问语句是( )。class Y{ //…… ; public:static int n;};int Y::n;Y objY
A. Y::n=1;
B. n=1;
C. objY::n=1;
D. Y->n