unique函数 1.作用:去重,删除所有相邻位置的重复元素 2.使用之前先排序 sort() 3.头文件 #include<algorithm> 4.用法: int sum=unique(b,b+10)-b; 无聊就学习 反正没事干