>> 的原型不是这样吗,istream& operator>>(istream&, T &);,它的返回值看起来并不是 bool,为什么能放到 while 里面?
>>
istream& operator>>(istream&, T &);
bool
while
再求一个手写类的例子达成类似效果。