单项选择题
下列函数中对调用它的函数没有起到任何作用的是( )。
A.void f1(double &{--x;}
B.double f2(double {return x-1.5;}
C.void f3(double {--x;}
D.double f4(double *{--*x; return*x;}
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序段的输出结果是( )。int x = 5;do {cout<<x--<<end1;}while(!x);
A.5
B.无任何输出
C.4
D.陷入死循环
点击查看答案
单项选择题
有如下类定义:class Point{int x__, y__;public:Point(): x_(0), y_(0) {}Point(int x, int y =0): x_(x), y_(y) {}若执行语句Point a(2),b[3], *c[4];则Point 类的构造函数被调用的次数是( )。
A.2次
B.3次
C.4次
D.5次
点击查看答案
相关试题
有以下程序:#include <iostream>using...
下列叙述中正确的是( )。
类模板template<class T>class x{.....
在C++中,打开一个文件,就是将这个文件...
下列有关继承和派生的叙述中,正确的是( )。