From c55ebc18adf2c1ade582fc1a8875141da8716149 Mon Sep 17 00:00:00 2001 From: Pratyush219 Date: Thu, 7 Oct 2021 10:40:49 +0530 Subject: [PATCH] Replaced array of tuples with vector of tuples --- operating_system/scheduling_algorithms/fcfs_scheduling.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/operating_system/scheduling_algorithms/fcfs_scheduling.cpp b/operating_system/scheduling_algorithms/fcfs_scheduling.cpp index 7ab717fc2..bba34c0dd 100644 --- a/operating_system/scheduling_algorithms/fcfs_scheduling.cpp +++ b/operating_system/scheduling_algorithms/fcfs_scheduling.cpp @@ -17,9 +17,6 @@ using std::tuple; using std::endl; using std::left; - - - /** * @brief Comparator class for Priority queue * S: Data type of Process id @@ -156,7 +153,7 @@ int main(){ //Sample test case int n = 3; - tuple input[n] = { + vector> input = { make_tuple(1, 0, 30), make_tuple(2, 0, 5), make_tuple(3, 0, 5)