在下列选项中,()是istream类的对象。
第1题:
下面关于ios类的叙述中,正确的是( )。
A.它是istream类和ostream类的虚基类
B.它只是istream类的虚基类
C.它只是ostream类的虚基类
D.它是ostream类的虚基类
第2题:
重载输入流运算符))必须使用的原型为( )。
A.istream&operator>>(istream&,<类名>&);
B.istream&operator>>(istream,<类名>);
C.istreamoperator>>(istream,<类名>&);
D.<类名>operator>>(istream&,<类名>&);
第3题:
A.cin
B.cerr
C.clog
D.cout
第4题:
重载输人流运算符>>必须使用的原型为( )。
A.istream&operator>>(istream&,<类名>&);
B.istream&operator>>(istream,<类名>);
C.istreamoperator>>(istream,<类名>&);
D.<类名>operator>>(istream&,<类名>&);
第5题:
输入流对象是信息流出的源头.istream,ifstream和istrstream是三个最重要的输入流类。()
第6题:
有如下类和对象的定义: class Constants{ public: static double getPI( ){return 3.1416;} }; Constants constants; 下列各组语句中,能输出3.1416的是
A.cout<<constants->getPI( );和cout<<Constants::getPI( );
B.cout<<constants.getPI( );和cout<<Constants.getPI( );
C.cout<<constants->getPI( );和cout<<Constants->getPI( );
D.cout<<eonstants.getPI( );和cout<<Constants::getPI( );
第7题:
A、cerr
B、cin
C、cout
D、cfile
第8题:
在语句“cout<<'A';”中,cout是( )。
A.类名
B.对象名
C.函数名
D.C++的关键字
第9题:
重载输入流运算符<<必须使用的原型为
A.ostream& operator>>(ostream&,<类名>);
B.istream&o perator>>(istream&,<类名>&);
C.ostream operator>>(ostream,<类名>&);
D.<类名>operator>>(istream&,<类名>&);
第10题:
A. cin
B.cout
C.cerr
D.clog