用函数 简单题解(C语言) 摘要:解题思路:分三部分 ,①结构体定义②输入函数③输出函数注意事项:传入函数时,是指针而非结构体参考代码:#include<stdio.h> struct student_data{ char num[3…… 题解列表 2022年03月18日 0 点赞 0 评论 172 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录 摘要:解题思路:一开始想用class代替struct,但是没想好怎么建对象的数组,就用struct了,实际上用class好像思路也是一样的。注意事项:(1)strcpy()函数要加<cstring>头。(2…… 题解列表 2022年03月07日 0 点赞 0 评论 344 浏览 评分:9.9
编写题解 1050: [编程入门]结构体之成绩记录(C语言简单代码) 摘要:解题思路:注意事项: 结构体数组参考代码:#include<stdio.h>#include<stdlib.h>struct student //声明结构体{ char …… 题解列表 2022年03月03日 0 点赞 0 评论 298 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:n = eval(input())s = []for i in range(n): s.append(input())for i in s: l = '…… 题解列表 2022年02月22日 0 点赞 0 评论 166 浏览 评分:0.0
简明易懂的题解,结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include#includetypedef struct{ char num[100]; char name[100]; int sub1; int sub2; in…… 题解列表 2022年02月12日 0 点赞 0 评论 179 浏览 评分:0.0
[编程入门]结构体之成绩记录-题解(python代码) 摘要:解题思路: 注意事项:参考代码:n=int(input())lst=[]for i in range(n): s=input() s=s.replace(' ',&#…… 题解列表 2022年01月26日 0 点赞 0 评论 207 浏览 评分:0.0
[编程入门]结构体之成绩记录(C++)STL string,可以体会到struct很像定义类时的变量传入 摘要: ```cpp #include #include using namespace std; struct student{ string id; string …… 题解列表 2022年01月25日 0 点赞 0 评论 201 浏览 评分:0.0
结构体之成绩记录,绝对易懂,搞懂吸收空行知识点 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;//结构体之成绩记录//这道题刚开始的时候,我直接写的没有吸收空行,导致后面有数组越界的情况出现,然后我把数组的长度增大…… 题解列表 2022年01月18日 0 点赞 0 评论 358 浏览 评分:9.9
结构体之成绩记录 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct infor{char num[100];char name[100];int m…… 题解列表 2022年01月17日 0 点赞 0 评论 310 浏览 评分:0.0
结构体之成绩记录(这大概是最不用动脑子的答案了) 摘要:```c #include typedef struct student{ char id[100]; char name[100]; int mark1; …… 题解列表 2022年01月16日 0 点赞 0 评论 354 浏览 评分:0.0