博客
关于我
奖学金发放
阅读量:200 次
发布时间:2019-02-28

本文共 1864 字,大约阅读时间需要 6 分钟。

Mooc????? ? ?????????

?????C????????????????????????? ????????? ??????????? ????????? ?????????????????? ????????????? qwq ???????? ??????????hhh ~~

#include 
#define len 10typedef struct winners { char name[20]; int finalScore; int classScore; char work; char west; int paper; int scholarship;} WIN;void Addup(WIN stu[], int n);int main() { int i; WIN stu[len]; printf("Input n:\n"); scanf("%d", &i); Addup(stu, i);}void Addup(WIN stu[], int n) { int i, sum = 0, m = 0, max = 0; for (i = 0; i <= n - 1; i++) { sum = 0; printf("Input name:\n"); scanf("%s", stu[i].name); printf("Input final score:\n"); scanf("%d", &stu[i].finalScore); printf("Input class score:\n"); scanf("%d", &stu[i].classScore); getchar(); printf("Class cadre or not?(Y/N):\n"); scanf("%c", &stu[i].work); getchar(); printf("Students from the West or not?(Y/N):\n"); scanf("%c", &stu[i].west); printf("Input the number of published papers:\n"); scanf("%d", &stu[i].paper); if (stu[i].finalScore > 80 && stu[i].paper > 0) sum += 8000; if (stu[i].finalScore > 85 && stu[i].classScore > 80) sum += 4000; if (stu[i].finalScore > 90) sum += 2000; if (stu[i].finalScore > 85 && stu[i].west == 'Y') sum += 1000; if (stu[i].finalScore > 80 && stu[i].work == 'Y') sum += 850; if (sum > max) { max = sum; m = i; } printf("name:%s,scholarship:%d\n", stu[i].name, sum); } printf("%s get the highest scholarship %d\n", stu[m].name, max);}

?????

  • ??????????????AI?????
  • ???????div??
  • ?????????????
  • ????????????????????
  • ????????????
  • ??????????
  • ????????????????????????
  • ??????????
  • ????????
  • ???????????
  • 转载地址:http://uxji.baihongyu.com/

    你可能感兴趣的文章
    OA系统多少钱?OA办公系统中的价格选型
    查看>>
    OA系统选型:选择好的工作流引擎
    查看>>
    OA让企业业务流程管理科学有“据”
    查看>>
    OA项目之会议通知(查询&是否参会&反馈详情)
    查看>>
    Vue.js 学习总结(13)—— Vue3 version 计数介绍
    查看>>
    OA项目之我的会议(会议排座&送审)
    查看>>
    OA项目之我的会议(查询)
    查看>>
    OA项目之我的审批(会议查询&会议签字)
    查看>>
    OA项目之项目简介&会议发布
    查看>>
    ObjC的复制操作
    查看>>
    Object c将一个double值转换为时间格式
    查看>>
    object detection之Win10配置
    查看>>
    object detection训练自己数据
    查看>>
    object detection错误Message type "object_detection.protos.SsdFeatureExtractor" has no field named "bat
    查看>>
    object detection错误之Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
    查看>>
    object detection错误之no module named nets
    查看>>
    Object of type 'ndarray' is not JSON serializable
    查看>>
    Object Oriented Programming in JavaScript
    查看>>
    object references an unsaved transient instance - save the transient instance before flushing
    查看>>
    Object 类的常见方法有哪些?
    查看>>