P1106 删数问题
这一题可以用双向链表来做,要对链表进行遍历,要用到迭代器。
list::iterator it = s.begin();
if(*it > *next(it))
这里为什么是next(it) 为什么不是(it->next) ???