重载输入流运算符<<必须使用的原型为( )。A.ostream& operator
题型:单项选择题
问题:
重载输入流运算符<<必须使用的原型为( )。
A.ostream& operator>>(ostream&,<类名>);
B.istream& operator>>(istream&,<类名>&);
C.ostream operator>>(ostream,<类名>&);
D.<类名>operator>>(istream &,<类名>&);
重载输入流运算符<<必须使用的原型为( )。
A.ostream& operator>>(ostream&,<类名>);
B.istream& operator>>(istream&,<类名>&);
C.ostream operator>>(ostream,<类名>&);
D.<类名>operator>>(istream &,<类名>&);