填空题

下面程序运行时输出结果为______。
#include<iostream.h>
#include
class Rect
public:
Rect(int l, int w)length=l; width=w;)
void Print()cout<<"Area:"<<length*width<<end1;
void operator delete(void*p)free(p);
private:
int length, width;
;
void main()
Rect *p;
p=new Rect(5, 4);
p->Print();
delete p;

【参考答案】

Area:20
热门 试题