指针做MAP的KEY的TEST
摘要:用struct做map的key会需要"operator #include #include using namespace std;//////////////////////////////////////////////////////////////////////////struct s{ int x; int y;};void main(){ map m; s* a = new s; a->x = 1; a->y = 2; s* b = new s; b->x = 1; b->y = 2; m.insert(pair(a, ...
阅读全文
posted @ 2013-10-10 03:30
浙公网安备 33010602011771号