问题 填空题

表达式x.operator++()还可写成()。

答案

参考答案:++x

解析:

C++语言中用成员函数重载++x为x.operator++()用友元函数重载++x为:operator++(x)。

单项选择题 A3/A4型题
选择题