class ABC{
int num;
string str;
public:
//重载运算符operator>>
};
ABC abc;
ifstream in("a.txt");
in>>abc;
*********** 该代码段如何写? **************
class ABC{
int num;
string str;
public:
//重载运算符operator>>
};
ABC abc;
ifstream in("a.txt");
in>>abc;
*********** 该代码段如何写? **************