题解 1050: [编程入门]结构体之成绩记录

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

此题不适用字符指针的说明

摘要:之所以不能用char*是因为字符指针不能操作该地址上的值,只能重新指向另一个地址!!!scanf相当于把这块地址上原有的值重写了,这是字符指针做不到的,因此只能用字符数组!!参考代码:#include……

[编程入门]结构体之成绩记录

摘要:解题思路:偷懒一下,写一个函数注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{    string xh,nam……

结构体成绩

摘要:解题思路:#include <stdio.h>struct stu{ char num[100]; char name[100]; int get[3];};void input(struct stu……