我得到了错误:
error C2512:'std::basic_ostream<_Elem,_Traits>' : no appropriate default
constructor available
使用以下代码:
class Sentence
{
public:
Sentence(void){}
~Sentence(void);
static void CreateHeader(std:string& s);
class Word {
public:
std:ostream s;
Sentence::Word(){ s<<""; }
Word(char*);
~Word();
};
};
构造函数Sentence::World(){ s <<""; };
不起作用。