欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

华庆数据结构 day2 24-7-17-zymain.h 文件

最编程 2024-07-18 12:02:53
...
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include"zy.h"

int main(int argc, char const *argv[])
{
    int size = 0;
    printf("请输入你要输入的人数:");
    scanf("%d",&size);
    struct Class * P = create(size);
    //调用录入函数
    input(P,size);
    //降序排序函数
    sort(P,size);
    //输出最好和最差的学生
    maxandmin(P,size);
    //输出学生
    output(P,size);
    //释放内存的函数
    destroy(P);
    P = NULL;
    return 0;
}

推荐阅读