错误代码:struct People * p = malloc(sizeof(struct People)); 正确代码:struct People * p = ( People *)malloc(sizeof(struct People));