str=(char **)calloc(m, sizeof(char *));//分配m个char指针for(int i=0;i{ str[i] = calloc(1, 100 * sizeof(char));//为每个char指针分配100个char}