有一个程序缺失了部分代码,需要您来继续分析补充。已知下面的程序能够正确输出,且输出结果是:
(4,5)
(7,8)
请按照题目中的提示填空,或者自行编写合适的成员函数,支持以上输出。
#include <iostream>
using namespace std;
class Point {
private:
int x;
int y;
public:
Point(int x_,int y_ ):x(x_),y(y_) { };
…………//这里缺少了什么?……………
};
//类中缺少部分的函数实现如下
friend ostream& operator << ( ostream &out, _________)
{
out<<__________________________________;
return _________________;
}
int main()
{ cout << Point(4,5) << Point(7,8);
return 0;
}