PAIR
포스트: 1
Posts
1 post[STL]priority_queue, pair, struct
내가 만든 구조체를 가지고 우선순위 큐 구현할 때... typedef struct NODE{ ... ...} NODE, *pNode; std::priority_queue< std::pair, std::vector , greater priority_queue_node; NODE *a;a = new NODE;a->...; std::pair tempNODE; priority_queue_node.push(tempNODE); tempNODE = priority



