02 2021 档案
摘要:先来一波温习: sort函数排序 sort(first_pointer,first_pointer+n,cmp),该函数可以给数组,或者链表list、向量排序。 参数1:第一个参数是数组的首地址,一般写上数组名就可以,因为数组名是一个指针常量。 参数2:第二个参数相对较好理解,即首地址加上数组的长度
阅读全文
摘要:#include<stdio.h> #include<iostream> using namespace std; const int maxn = 100010; struct NODE{ char data; int next; bool flag; }list[maxn]; int find(
阅读全文