istream& operator>> (istream &in, vector <Customer>& cvect)
{
while (!in.eof())
{
//read from file into cvect vector
}
return cvect;
}
为此,我得到“cvect 类型引用的无效初始化”。我究竟做错了什么?
istream& operator>> (istream &in, vector <Customer>& cvect)
{
while (!in.eof())
{
//read from file into cvect vector
}
return cvect;
}
为此,我得到“cvect 类型引用的无效初始化”。我究竟做错了什么?