J
jaivrat
When we overload the >> operator then why do we need to return the
istream by reference ? Why can't we do a void return?
(Quoting from a book )
e.g
istream & operator >>(istream & din, VectClass &v){
for( int i=0; i<= 3; i++)
din >> v;
return din;
}
istream by reference ? Why can't we do a void return?
(Quoting from a book )
e.g
istream & operator >>(istream & din, VectClass &v){
for( int i=0; i<= 3; i++)
din >> v;
return din;
}