代码: 全选
typedef struct index_list_str {
int pos;
int list;
} *indexed_list_ptr;
indexed_list_ptr index = (indexed_list_ptr) malloc ((size_t)20 * (sizeof(struct index_list_str)));
代码: 全选
typedef struct index_list_str {
int pos;
int list;
} *indexed_list_ptr;
indexed_list_ptr index = (indexed_list_ptr) malloc ((size_t)20 * (sizeof(struct index_list_str)));
sgsdxzy 写了:p index->pos 或p index.pos 不行吗?