单项选择题
以下程序的执行结果是()。 #include<iostream.h> #include<iomanip.h> void fun(int n) if(n!=0) fun(n-1); for(int i=1 ;i<=n;i++) cout<<setw(3)<<i; cout<<end1; void main() fun(3);
A、 B、 C、 D、
A、 operator+(operator* (y,z)) B、 x.operator+(operator* (y,z)) C、 x.operator+(x*(y,z)) D、 x +(operator*(y,z))
A、若在重定义虚函数时使用了virtual,则该重定义函数还是虚函数 B、虚函数不能声明为友元 C、子类必须重定义父类的虚函数 D、虚函数不能是static的