摘要:        
在写私信群聊代码的时候碰到怎么把一个vector<Int> 元素unique化的问题,基本上就是需要下面这么做,用<algorithm>中的,先sort再unique 1 #include <algorithm> 2 #include <iostream> 3 #include <vector> 4 #include <stdio.h> 5 using namespace std; 6 void print(vector<int>& vec); 7 int main(){ 8 int a[] = {1,    阅读全文
        
            posted @ 2012-06-11 19:37
小宇2
阅读(1003)
评论(0)
推荐(0)
        
     
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号