/*平时成绩比例*/float sco2Ratio = 0.2; /*期中成绩比例*/float sco3Ratio = 0.7; /*期末成绩比例*/stu[stuIndex]...
void input(Student stu[]);//这3行放到结构体Student后面 且可以不加关键词struct Student max(Student stu[]); void print(Student stu); Student stu[5],...
使用字符数组存储,长度为 10char PhoneNumber[15];//学生的电话号,使用字符数组存储,长度为 15}stu[5], temp;//...
double Score;}studentScore[5];int main(int argc, const char * argv[]) { int i;struct Student student[5];struct StudentScore studentScore[5];for (i = 0; ...
for(i=0;i<5;i++){ printf("输入第%d个学生的学号,姓名,两科成绩:\n",i+1);scanf("%d %c",&stud[i].num,&stud[i]...
//定义一个结构体指针和结构体数组{"zhao",{50,60,70}},{"qian",{80,65,89}},{"sun",{48,36,92}},{"li",{32,85,75}},{"zhou",{65,71,82}},}; int main(){printf("...
student_info(struct Student s) { string str[] = {"男", "女"}; cout << "学号:" << s.student_id << endl; cout << "性别:" << str[s.gender] << endl; ...
define max 5 /*设定要输入成绩的学生个数*/ double zpj; /*总平均值*/ struct student /*结构体*/ { int num;char name[10];int score1;int score2;int sco...
printf("成绩低于140的学生信息为:\n");for(i=0;i<5;i++)if(stus[i].score<140)printf("学生名:%s,成绩:%.1f\n"...
include
其他小伙伴的相似问题3 | ||
---|---|---|
用结构体输入5个学生信息在输出 | c语言学生信息管理系统设计报告 | c语言结构体定义和使用 |
Python面向对象输入输出学生信息 | c语言做一个学生信息查询 | 编写程序文件用于计算加减乘除 |
结构体内的数组怎么调用 | 建立一个手机通讯录结构体 | C语言malloc函数 |
对结构体数组进行排序 | 返回首页 |
返回顶部 |