填空题 下面程序运行时输出结果为______。
#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;


  • 1、
【正确答案】 1、Area:20    
【答案解析】