求C程序排错!

[复制链接]
查看11 | 回复1 | 2013-8-5 23:16:39 | 显示全部楼层 |阅读模式
#include struct student {char num[6]; //分号 char name[8]; //分号 int score[3]; //分号 double avr;//这里最好用double }stu[5];int main() {int i, j ,sum; //这里的i大写了for(i=0;istruct student {char num[6];char name[8];int score[3];double avr; }stu[5]; void main() {int i,j ,sum;for(i=0;i//少头文件 struct student {char num[6];
//冒号要半角的char name[8]; //冒号要半角的 int score[3]; //冒号要半角的 float avr; }stu[5]; int main()
//缺少主函数类型 { int i,j ,sum; ...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行