int q = WEIDU_NUM;
char **y = (char**)malloc(sizeof(char*)*q);//临时存储要排序的元素
char**x = (char**)malloc(sizeof(char*)*q);//存储从括号里拿出来的元素
for (i = 0; i < q; i++)
{
y[i] = (char*)malloc(sizeof(char)*DATE_NUM);
x[i] = (char*)malloc(sizeof(char)*DATE_NUM);
char **y = (char**)malloc(sizeof(char*)*q);//临时存储要排序的元素
char**x = (char**)malloc(sizeof(char*)*q);//存储从括号里拿出来的元素
for (i = 0; i < q; i++)
{
y[i] = (char*)malloc(sizeof(char)*DATE_NUM);
x[i] = (char*)malloc(sizeof(char)*DATE_NUM);
}
//为什么指针就不能直接分配
//char 类型的就可以直接用define的数