C语言,编写中出现了问题。 请各位大神帮帮我这个小白,感激不尽~~~

24: warning: "struct student" declared inside parameter list24: warning: its scope is only this definition or declaration, which is probably not what you want133: error: request for member `number' in something not a structure or union144: error: structure has no member named `number'144: error: request for member `name' in something not a structure or union145: error: structure has no member named `sum'146: error: structure has no member named `average'147: error: incompatible types in assignment172: error: `stu' undeclared (first use in this function)172: error: (Each undeclared identifier is reported only once172: error: for each function it appears in.)202:warning: passing arg 1 of `save' makes pointer from integer without a cast210: warning: "struct student" declared inside parameter list211: error: conflicting types for 'inturn'24: error: previous declaration of 'inturn' was here213: error: storage size of 'temp' isn't known214: error: `SIZE' undeclared (first use in this function)217: error: invalid use of undefined type `struct student'217: error: dereferencing pointer to incomplete type217: error: invalid use of undefined type `struct student'217: error: dereferencing pointer to incomplete type219: error: invalid use of undefined type `struct student'219: error: dereferencing pointer to incomplete type220: error: invalid use of undefined type `struct student'220: error: dereferencing pointer to incomplete type220: error: invalid use of undefined type `struct student'220: error: dereferencing pointer to incomplete type221: error: invalid use of undefined type `struct student'221: error: dereferencing pointer to incomplete type227: error: `stu' undeclared (first use in this function)236: error: storage size of 'temp' isn't known258: error: invalid application of `sizeof' to incomplete type `student' 276: error: invalid application of `sizeof' to incomplete type `student' 308:2: warning: no newline at end of file308: error: syntax error at end of input30 个错误, 5 个警告

144: error: structure has no member named `number'
结构体没有名称为“number”的成员
172: error: `stu' undeclared (first use in this function)
stu没有声明(首次使用时,先声明)
220: error: invalid use of undefined type `struct student'
struct student这个类型没声明
。。。。。。。。。。。。

你双击错误,编译器会自动定位到有错误的代码行,你一条一条改吧
错误其实没这么多,通常是一个错误引发N个
温馨提示:答案为网友推荐,仅供参考
相似回答