64,281
社区成员
发帖
与我相关
我的任务
分享
//T.cc
#include <iostream>
#include "T.h"
int main
{
T book;
std::cin>>book;
std::cout<<book;
}
//T.h
class T
{
public:
T:x(0),y(0){}
private:
int x;
int y;
}
//T.h
class T
{
public:
T():x(0),y(0){};
friend ostream &operator<<(ostream &,const T &){};
friend istream &operator>>(istream &,T &){};
private:
int x;
int y;
};