学习map的使用的问题?
class TextQuery{
public:
TextQuery(){memset(this,0,sizeof(TextQuery));}
static void
filter_element(string felems){filt_elems=felems;}
void query_text();
void display_map_text();
void display_text_locations();
void doit(){
retrieve_text();
separate_words();
filter_text();
suffix_text();
strip_caps();
build_word_map();
}
private:
retrieve_text();
separate_words();
filter_text();
suffix_text();
suffix_s(string&);
strip_caps();
build_word_map();
vector<string> *lines_of_text;
text_loc *text_locations;
map<string,loc*, less<string> > *word_map;
static string filt_elems;
}
string TextQuery::filt_elems(",.;:!?");
//这里总是说[C++ Error] Unit1.cpp(57): E2141 Declaration syntax error
为什么?摘录自C++ Primer 260页