先來先服務算法(FCFS)

** 先來先服務算法(FCFS) ** 就是先到達的先執行 代碼是用C加加寫的 需要先建立一個Win32 Console Application工程,在其中建一個C++的文件 使用的是冒泡法對到達時間進行從小到大排序 流程圖 源代碼 #include 「stdio.h」 #define N 20 struct process { int no;//序號 int arrtime;//到達時間 int
相關文章
相關標籤/搜索