填空题

在一个函数的定义或声明前加上关键字______时,该函数就声明为内联函数。

【参考答案】

inline
<上一题 目录 下一题>
热门 试题

填空题
operator是运算符重载时必须使用的关键字,它和被重载的运算符连在一起,作为运算符函数的专用函数名,务必把该函数说明为______的。
填空题
下面程序运行时输出结果为______。 #include <iostream.h> #include <malloc.h> class Rect public: Rect(int l,int w) length=l;width=w;) void Print() cout<< Area: <<length*width<<endl; void *operator new(size-t size) return malloc(size); void operator delete(void *p)free(p private: int length,width; ; void main() Rect *p; p=new Rect(5,4); p->Print(); deletep;
相关试题
  • 以下程序的输出结果是______。 #in...
  • 有如下程序: #include <iostream> u...
  • 下列程序将x、y和z按从小到大的顺序排列,...
  • 下列程序运行后的输出结果是______。...
  • 以下程序的执行结果是______。 #in...