c语言求教!

[复制链接]
查看11 | 回复3 | 2012-11-27 13:45:56 | 显示全部楼层 |阅读模式
#includestruct student{
int num;
char name[20];
float score[3]; } stu[10] = {{100,"aaa",50,40,48},{101,"bbb",85,15,28},{102,"ccc",11,25,68},{103,"ddd",45,95,48},{104,"eee",52,85,75},{105,"fff",62,74,36},{106,"ggg",63,95,25},{107,"hhh",41,62,65},{108,"iii",52,96,58},{109,"jjj"...
回复

使用道具 举报

千问 | 2012-11-27 13:45:56 | 显示全部楼层
void main(){struct student stu[10]; // 去掉这个定义,因为已经定义一个全局数组stu[10]了,aver_all(stu);}修改后;#includestruct student{
int num;
char name[20];
...
回复

使用道具 举报

千问 | 2012-11-27 13:45:56 | 显示全部楼层

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行