摘要: ————参考博客(推荐看这篇博客,非常全) 1.三数取中(也可以5个数甚至更多) #include<stdio.h> #define Max 100 //储存的最大值 void Swap(int *A,int *B) { int temp = *A; *A = *B; *B = temp; } in 阅读全文
posted @ 2022-05-01 14:57 彭乐祥 阅读(222) 评论(0) 推荐(0) 编辑
摘要: #时间片轮询算法 ###一.代码 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define n 10//进程名最大长度 #define MAX 5//进程数 //定义进程类型 typedef struct 阅读全文
posted @ 2022-05-01 14:52 彭乐祥 阅读(139) 评论(0) 推荐(0) 编辑