填空题

在编译时才确定的函数调用称为 【12】 ,它是通过使用 【13】 来实现的。

【参考答案】

静态联编、重载函数
<上一题 目录 下一题>
热门 试题

填空题
将下面程序补充完整。 #include <iostream> using namespace std; class Base public: 【14】 fun()return 0; 声明虚函数 ; class Derived:public Base public: x,y; void SetVal(int a,int b) int fun()return x+y; ; void 【15】 SetVal(int a,int b)x=a;y=b; 类Derived成员函数 void main() Derived d; cout<<d.fun()<<endl;
填空题
若执行下面程序段后的输出为:345,请填空。 int a,b=3,c=5; a=b<c 【7】 :c++; cout<<a<<b<<c;
相关试题
  • 在C++类的规定中:静态函数只能给引用类...