结构体之成绩记录(原始解法通俗易懂) 摘要:解题思路:原始解法,没有加任何指针或者链表。方便理解。注意事项:参考代码:#include<stdio.h>#include<string.h>struct Student { char id[128…… 题解列表 2023年11月04日 0 点赞 0 评论 488 浏览 评分:0.0
C语言,结构数组 摘要:解题思路:呃,懒得写了参考代码:#include <stdio.h>typedef struct student{ char number[10]; char name[10]; c…… 题解列表 2023年11月19日 0 点赞 0 评论 447 浏览 评分:0.0
无需指针 无需指针 无需指针 最最最简单易懂的解题思路!!! 解题思路:根据题目要求,需要输n个学生的各项数据,且需要定义一个结构体包含学生的各项数据。那我们可以将一个学生的各项数据作为一个整体,n个学生的话就需要n个整体,所以我们就可以定义一个结构体数组,每个数组元素就是一个结构体,通过n次循环将n个学生的数据输入相应的结构体, 题解列表 2023年11月30日 0 点赞 0 评论 489 浏览 评分:0.0
[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:class Student(): def input(self, student_id, name, score): self.student…… 题解列表 2023年11月30日 1 点赞 0 评论 444 浏览 评分:0.0
]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Stu{ char id[20],name[20]; int score1,score2,score3;};v…… 题解列表 2023年12月08日 0 点赞 0 评论 387 浏览 评分:0.0
结构体之成绩记录,中规中矩 摘要:解题思路:注意事项:注意格式的输出参考代码:#include<stdio.h>int main(){ struct LC { char a[10]; char b[10]; int c[3]; …… 题解列表 2023年12月13日 0 点赞 0 评论 735 浏览 评分:0.0
题解 1050: [编程入门]结构体之成绩记录(超超超级简单) ```c#include#includestructstudent{charshuju[20];charname[20];intchinese;intenglish;intmath;};structstudenta[100];voidinput(inti){scanf("%s%s%d%d%d", 题解列表 2023年12月17日 0 点赞 0 评论 402 浏览 评分:0.0
结构体之成绩记录(java类) 摘要:多的不说,直接上代码import java.util.Scanner; class Grade{ int oneSub; int twoSub; int thre…… 题解列表 2023年12月27日 0 点赞 0 评论 447 浏览 评分:0.0
c代码记录之结构体成绩记录--函数传参 #includestructStudent{charxuehao[30],name[30];inta,b,c;};voidinput(structStudentstu[],intn){for(inti=0;i 题解列表 2023年12月29日 0 点赞 0 评论 429 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录(Python) 摘要:解题思路:我认为核心难点就是如何用列表表示“二维数组”,如果知道如何表示的话,就差不多了。注意事项:无参考代码:n = int(input())ls =[]for i in range(n): …… 题解列表 2024年01月01日 0 点赞 0 评论 578 浏览 评分:0.0