下面程序运行时输出结果为______。
#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;
题库:计算机等级考试
类型:填空题
时间:2017-07-03 15:13:19
免费下载:《填空》Word试卷
下面程序运行时输出结果为______。
#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;
本题关键词:输出结果,行为结果,行为结果评价,面试程序,原油输运管道运行,道德行为效果,公路运输通行证,竣工结算程序,行政诉讼程序,结果;