首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

C++PRIMER P 250,该如何处理

2012-03-09 
C++PRIMERP 250c++primer(ed3)P249~p250typedefpair short,shourlocationtypedefvector locationloc

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    


[解决办法]
呵呵

热点排行