结构体之成绩统计2(用结构体指针,疯狂嵌套循环,缩小了工作量) 解题思路:这题写的好爽,具体解释写代码中了成绩我是以数组形式收取,免得写那么多参考代码:```c#includestructm{charsno[20];charname[20];intgrade[3];};//别忘了结构体结尾要打分号intmain(){intn;scanf("%d", 题解列表 2023年09月15日 0 点赞 0 评论 540 浏览 评分:9.9
[编程入门]超精简30行代码解决(容易理解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct stu{ char xh[10]; char xm[10]; int cj[3]; }…… 题解列表 2023年08月20日 0 点赞 0 评论 756 浏览 评分:9.9
使用链表实现的成绩统计,无长度限制 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #define Maxsize 100 typedef struct { c…… 题解列表 2023年08月19日 0 点赞 0 评论 700 浏览 评分:0.0
刷題記錄,新手勿怪-带注解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct transcript{ char student_num[20]; char name[20]; int grade[3]…… 题解列表 2023年04月24日 0 点赞 0 评论 517 浏览 评分:0.0
[编程入门]结构体之成绩统计2 柔性数组的解法可以更节省空间,同时代码执行效率也要高于结构体内部指针```cstructYea{charxuehao[20];charname[20];floatgrade[3];};structcon{structYeadata[];//使用柔性数组};voidinput(structcon*ps, 题解列表 2023年04月22日 0 点赞 0 评论 533 浏览 评分:9.9
题目 1051: [编程入门]结构体之成绩统计2 #include#includestructstudent{//定义学生结构体,包含学号、姓名、三科成绩charid[20];//学号charname[20];//姓名intscore[3];//三科成绩};intmain(){intn;scanf("%d", 题解列表 2023年04月19日 0 点赞 0 评论 632 浏览 评分:9.9
编写题解 1051: [编程入门]结构体之成绩记录2 在结构体内部的命名搞混了,```c#include#includestructstu{charnum[10];charname[20];intscr[3];//score}s[100];voidinput(structstus[],intn){inti=n;scanf("%s%s%d%d%d", 题解列表 2023年03月16日 0 点赞 0 评论 951 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2——Ccp 摘要:解题思路:注意事项:参考代码:1051: [编程入门]结构体之成绩统计2#include<stdio.h>struct stu{ char num[100]; char name[100]; int …… 题解列表 2023年03月07日 0 点赞 0 评论 507 浏览 评分:9.9
函数彩笔一个 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct ji{ char num[100],na[100]; int s[3];};void input(struct ji …… 题解列表 2023年03月02日 0 点赞 0 评论 470 浏览 评分:0.0
结构体之成绩统计2 -解题思路:用两个函数完成输入与输出,具体见代码注释-代码如下:```c#include#includetypedefstructstduent{charid[20];charname[20];intscores1;intscores2;intscores3;}stu;//定义结构体voidinput 题解列表 2023年02月21日 0 点赞 0 评论 653 浏览 评分:9.9