1050: [编程入门]结构体之成绩记录 摘要:import java.io.*; /** * 注意不能前面用 cin.nextToken() 后面用 in.readline(),用 in.readline() 必须从头用到尾,否则会阻塞…… 题解列表 2021年12月11日 0 点赞 0 评论 678 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录(java代码) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2021年12月19日 0 点赞 0 评论 866 浏览 评分:9.9
简洁明了的结构体之成绩记录 摘要:解题思路:注意事项:结构体中字符串赋值需要用到<string.h>库函数中的strcpy来赋值,主函数中的(struct student s[20];)用来定义结构体中的学生数目的数组,因为不确定输入…… 题解列表 2021年12月20日 0 点赞 0 评论 594 浏览 评分:9.9
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ char sno[100]; char name[100]; int gread[3];};void i…… 题解列表 2022年01月04日 0 点赞 0 评论 529 浏览 评分:0.0
结构体之成绩记录(这大概是最不用动脑子的答案了) ```c#includetypedefstructstudent{charid[100];charname[100];intmark1;intmark2;intmark3;}st;intinput(st*a){scanf("%s%s%d%d%d", 题解列表 2022年01月16日 0 点赞 0 评论 726 浏览 评分:0.0
结构体之成绩记录 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct infor{char num[100];char name[100];int m…… 题解列表 2022年01月17日 0 点赞 0 评论 621 浏览 评分:0.0
结构体之成绩记录,绝对易懂,搞懂吸收空行知识点 解题思路:注意事项:参考代码:importjava.util.Scanner;//结构体之成绩记录//这道题刚开始的时候,我直接写的没有吸收空行,导致后面有数组越界的情况出现,然后我把数组的长度增大一,然后能正常输出,但是会多一个空行,//这是因为没有吸收空行, 题解列表 2022年01月18日 0 点赞 0 评论 740 浏览 评分:9.9
[编程入门]结构体之成绩记录(C++)STL string,可以体会到struct很像定义类时的变量传入 ```cpp#include#includeusingnamespacestd;structstudent{stringid;stringname;intChinese;intMath;intEnglish;};studentinput(studentstu, 题解列表 2022年01月25日 0 点赞 0 评论 544 浏览 评分:0.0
[编程入门]结构体之成绩记录-题解(python代码) 摘要:解题思路: 注意事项:参考代码:n=int(input())lst=[]for i in range(n): s=input() s=s.replace(' ',&#…… 题解列表 2022年01月26日 0 点赞 0 评论 600 浏览 评分:0.0
简明易懂的题解,结构体之成绩记录 解题思路:注意事项:参考代码:#include#includetypedefstruct{charnum[100];charname[100];intsub1;intsub2;intsub3;}gra;//这个结构typedef为gra。gra*p;//这个指针做全局变量方便free,后面会细说。 题解列表 2022年02月12日 0 点赞 0 评论 500 浏览 评分:0.0