C++PRIMER P 250
c++primer(ed 3) P249~p250
typedef pair <short,shour> location;
typedef vector <location> loc;
typedef vector <string> text;
typedef pair <text *,loc *> text_loc;
extern map <string,loc*> * build_word_map(const text_loc *text_locations);
map <string,loc*> *word_map=new map <string,loc*> ;
vector <string> *text_words=text_locations-> first;
vector <location> *text_locs=text_locations-> second;
(*word_map)[(*text_words)[ix]]-> push_back((*text_locs)[ix]);
这其中的(*word_map)[(*text_words)[ix]] 怎么会和是一个位置向量呢??
我知道 (*text_words)[ix]是一个STRING
[解决办法]
呵呵