全文预览

c语言小项目资料

上传者:学习一点 |  格式:docx  |  页数:26 |  大小:19KB

文档介绍
e;                       }               }       }       printf("maxstudent:\nnum:%d\tname:%s\taverage:%d\n\n",s[0].num,s[0].name,s[0].average);       printf("number\tname\tmath\tChinese\tEnglish\taverage\n");       for(n=0;n<10;n++)       {               printf("%d\t",s[n].num);               printf("%s\t",s[n].name);               printf("%d\t",s[n].math);               printf("%d\t",s[n].chinese);               printf("%d\t",s[n].english);               printf("%d\n",s[n].average);       }       return0;}/**************************************//*项目实训五 *//*源代码如下:*//**************************************/#include<stdio.h>#include<string.h>#include<stdlib.h>intmain(intargc,char*argv[]){   structstr{   intcode;   charname[20];   intmath;   intEnglish;   intChinese;   intaverage;   }stu[10];

收藏

分享

举报
下载此文档