您的位置:首页 > 产品设计 > UI/UE

(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&)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐