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

24:warning:"structstudent"declaredinsideparameterlist24:warning:itsscopeisonlythisdef... 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 个警告 展开
 我来答
小菜呀小菜
2016-12-21 · TA获得超过256个赞
知道小有建树答主
回答量:267
采纳率:50%
帮助的人:149万
展开全部
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个
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式