问个结构体的小问题?
程序代码:
struct student { int num; //索引 char name[20]; char sex[10]; char brith[10]; char remark[30]; struct student *next; } struct student *creat(void)编译时显示-------------------Configuration: students - Win32 Debug--------------------
Compiling...
students.c
D:\程序\student\students.c(20) : error C2236: unexpected 'struct' 'student'
执行 cl.exe 时出错.
students.obj - 1 error(s), 0 warning(s)