编写题解 1050: [编程入门]结构体之成绩记录 摘要:```c #include struct Student{ char num[20]; char name[20]; int scores[3]; }student…… 题解列表 2024年05月27日 0 点赞 0 评论 211 浏览 评分:9.9
主打简洁,现有有N个学生的数据记录,每个记录包括学号、姓名、三科成绩 摘要:解题思路:输入,开辟存储空间,输入,输出注意事项:注意struct里的string类型不可以使用malloc开辟,需要new创建,所以结构体这里使用了数组,而不是string;参考代码:#includ…… 题解列表 2024年06月13日 0 点赞 0 评论 436 浏览 评分:9.9
c语言简洁的解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int n,i=0; scanf("%d",&n); struct stu { char id[255]; char…… 题解列表 2024年07月19日 0 点赞 0 评论 296 浏览 评分:9.9
1050:结构体之成绩记录 #C++ 摘要:1. id 类型必须 string 2. 多行输入注意 换行符 3. ```cpp for(int i = 0; i < 3; ++i) std::cin >> student.scores…… 题解列表 2024年09月17日 0 点赞 0 评论 510 浏览 评分:9.9
编写题解 1050: [编程入门]结构体之成绩记录(注释清晰 简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct student{ …… 题解列表 2024年12月27日 5 点赞 0 评论 801 浏览 评分:10.0
根据不同结构体对象,创建数组变量来解决 摘要:解题思路:不同学生有不同的结构体对象,可利用可变数组来储存,并调用注意事项:正确使用可变数组的定义和声明参考代码:#include <iostream>#include <vecto…… 题解列表 2025年01月06日 2 点赞 0 评论 639 浏览 评分:10.0
依次编写函数实现特定功能 摘要:解题思路:注意事项:注意格式控制符,用逗号分隔开参考代码:#include<bits/stdc++.h>using namespace std;struct student_info{&n…… 题解列表 2025年04月10日 1 点赞 0 评论 380 浏览 评分:10.0