P1002 (C语言代码) 摘要://奖学金.c #include <stdio.h> struct student { char name[21]; int lmark; int clmark; …… 题解列表 2017年11月24日 0 点赞 0 评论 2147 浏览 评分:0.0
P1002 (C语言代码) 摘要:#include<stdio.h>typedef struct n{ char name[21]; int score; int grade; char c1; char…… 题解列表 2018年03月26日 0 点赞 0 评论 1329 浏览 评分:0.0
P1002 (C语言代码) 题目链接:http://www.dotcpp.com/oj/problem1269.html解题思路:简单的方法就是利用结构体,创建一个结构体数组,对其中的成员进行操作,然后比较即可注意事项:对于数组要初始化,否则自增无意义参考代码:#includestructstudent{cha 题解列表 2018年07月02日 0 点赞 0 评论 1180 浏览 评分:0.0
P1002 (C语言代码) 摘要:解题思路: 用循环和数组即可注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d", &n); int i, a[n],…… 题解列表 2018年08月04日 0 点赞 0 评论 1233 浏览 评分:0.0
P1002 (C语言代码)——利用结构体 解题思路:1)要一次输入多个值,利用结构体比较方便2)对于奖学金的评定,有一些关于分数的要求,比较时可以自己为他们排一下序,比如如果不大于80,就不用可虑大于90了,所以把大于90的奖学金放在大于80的语句里面,可以减少一些不必要的资源浪费注意事项:1)利用数组, 题解列表 2018年08月18日 0 点赞 0 评论 1253 浏览 评分:0.0
P1002 -_-!!! 摘要:#include<stdio.h> #include"string.h" int func(int a[],int n,int *s); struct info { char nam…… 题解列表 2018年11月26日 1 点赞 0 评论 1599 浏览 评分:0.0
P1002-题解(C语言代码) #includeintmain(void){structSTU{charname[32];intx1;intx2;charc1;charc2;intnum;}stu[100];inti=0,n=0,max=0,sum=0;intmny[100]={0, 题解列表 2020年03月03日 0 点赞 0 评论 942 浏览 评分:0.0
P1002-题解(C语言代码) 摘要:这一题难度不大,选择一个结构体数组,将学生的所有信息囊括就行,同时设置变量 money 表示学生获得的奖学金数额,allmoney 用于统计所有的奖学金数额。为了满足题目的条件:“如果有两位或两位以上…… 题解列表 2020年10月08日 0 点赞 0 评论 968 浏览 评分:0.0
P1002-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ struct STU { char name[32]; int x1…… 题解列表 2020年12月01日 0 点赞 0 评论 1134 浏览 评分:0.0
P1002 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>struct student{ char name[20]; int score1,score2…… 题解列表 2017年08月30日 3 点赞 0 评论 2229 浏览 评分:8.0