(NOT CLEAR) Question 14: What is the correct declaration for a file stream insertion operator for a class my_stuff::my_class a
2010-11-30 11:58
1031 查看
#include <fstream> namespace my_stuff { class my_class { public: int i; }; //Declaration goes here }//ns my_stuff
A. std::ofstream& operator<<(std::ofstream& ofs, const my_class&);
B. const my_class& operator<<(const my_class&)
C. std::fstream& operator<<(std::fstream& fs, const my_class&)
D. std::ifstream& operator<<(std::ifstream& ifs, const my_class&)
E. void operator<<(const my_class&)
相关文章推荐
- Question 12: In C++, which of the following is the best declaration for an overloaded operator[] to allow read-only access (and
- What is the best way to calculate a checksum for a file that is on my machine?
- Question 30: What is the order of destructor calls for an object of class Y inherited from class X that has an object of class A
- What is the correct approach for a custom UIToolBar?
- (NOT CLEAR)Question 40: In the declaration below, p is a pointer to an array of 5 int pointers:
- org.apache.jasper.JasperException The value for the useBean class attribute class.MyBean is invalid.
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- ccah-500 第20题 What is the result when you execute: hadoop jar SampleJar MyClass
- org.apache.jasper.JasperException The value for the useBean class attribute class.MyBean is invalid.
- The project was not built since its build path is incomplete. Cannot find the class file for...
- 错误提示: The project was not built since its build path is incomplete. Cannot find the class file for j
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.la
- The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build pat
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- The project was not built since its build path is incomplete. Cannot find the class file for javax.e
- JAVA Error:The project was not built since its build path is incomplete. Cannot find the class file for java.util.Map$Entry.....
- question:setValue:forUndefinedKey: this class is not key value coding-compliant for the key
- What is the difference between authorized_key and known_host file for SSH