已知函数f的原型是void f(int*x,int &y);变量a和b的类型都是int,下列调用语句中正确的是()
A. f(a,b);
B. f(a,&b);
C. f(&a,b);
D. f(&a,&b);
查看答案
下面选择重载函数的不同实现的判断条件中,错误的是()
A. 参数类型不同
B. 函数返回类型不同
C. 参数个数不同
D. 参数顺序不同
在C++语言中,作用域::运算符的功能是()。
A. 标识作用域的级别的;
B. 指出作用域的范围的;
C. 给定作用域的大小的;
D. 标识某个成员是属于哪个类的。
命名空间namespace是解决标识符命名冲突问题的有力工具。
A. 对
B. 错
根据中文填空,所填单词首字母已给出。注意使用正确的动词形式。1. 彼得拥有一流运动员应具备的所有特质。Peter had all the a_____________ of a first-class athlete.2. 两位领导人都强调他们将确保协议生效。Both leaders u_____________ their commitment to making the agreement work.3. 我们的失败是意料中的事,尽管如此,还是令人失望。Our defeat was expected, but it is disappointing n___________.4. 数学涉及对抽象概念的理解。Mathematics is concerned with understanding a____________ concepts.5. 解决这个问题对于实现和平是至关重要的。Resolving this issue is c___________ to making peace work.6. 我们的态度甚至还有一个更根本的差异。There was an even more f______________ difference in attitude between us.7. 污染是健康的大敌。Pollution is a major health h___________.8. 她没有顾虑任何后果,把自己的感想全说出来了。She said exactly what she felt, without fear of the c________________.9. 他最终放弃了这个使自己精疲力竭的工作。He finally gave up the d___________ job.10. 讨论不应只关注数字文化的消极方面。Discussions should not focus e______________ on the negative aspects of digital culture.