
程序是
void initcon(con* p1)
{
assert(p1);p1->size = 0;num* tump =(num*) malloc(numbers * sizeof(num));if (tump != NULL){p1->ps = tump;//进行初始化}else{printf("错误是%s\n", strerror(errno));return;//直接结束程序}p1->capcity = numbers;}
typedef struct contect
{
num* ps;
int size;
int capcity;
}con;//初始定义3个结构体成员
typedef struct number
{
char name[a];
char sex[b];
char tele[c];
int age;
}num;
没看懂是啥意思,你想描述的问题是什么?
