title: Declaring mass amounts of class instances in c++
body: <p>I am taking an OS class and my goal for an assignment is comparing wait times for FCFS and SJF scheduling algorithms for 1000 processes. I am not actually creating 1000 processes, rather a table of  1000 random pid's, 1000 random arrival times, and 1000 random burst times, all with integer values. I realize this can easily be done by just creating 3 arrays and assigning 1000 rand() values to each array, but I also need to sort these by arrival time and burst time for the algorithms.</p>
  
  <p>My question is, is there any way to make a class with these attributes, then declare 1000 instances of this class without having to individually declare all 1000 of them by hand? I know you cannot dynamically declare variables in c++, so if there is another way around this I would be very interested to know. Or, if there are any other solutions i.e. linking the arrays, etc. I would greatly appreciate the help.</p>