请在下面程序的横线处填上适当内容,以使程序完整,并使程

请在下面程序的横线处填上适当内容,以使程序完整,并使程序的输出为5。

#include<iostream.h>
class Integer
{
int x;
public:
Integer(int a=0){x=a;}
void display(){cout<<x<<endl;}
_____________(1)_____________;
};
Integer Max(Integer a,Integer b)
{
if(__________(2)_________)
return a;
return b;
}
void main()
{
Integer a(3),b(5),c;
c=Max(a,b);
c.display();
}
答案
第1空:friend Integer Max(Integer a, Integer b)
第2空:a. x>b. x

题目信息

题号:7603
题型:填空题
难度:普通