摘要: 一、将三个整数按升序重新排列 【题目】试写一算法,如果三个整数a,b和c的值不是依次非递增的,则通过交换,令其为非递增。 要求实现下列函数: void Descend(int &a, int &b, int &c); /* 通过交换,令 a >= b >= c */ #include "allinc 阅读全文
posted @ 2021-07-11 19:41 KeyHuy 阅读(1202) 评论(0) 推荐(1)
摘要: StuManage.h(头文件) #include <stdio.h> #include <stdlib.h> #include <string.h> #define OK 1 #define ERROR 0 #define INFINITY INT_MAX //计算机允许的整数最大值,即无穷大 # 阅读全文
posted @ 2021-02-13 15:47 KeyHuy 阅读(1323) 评论(0) 推荐(0)