Hi im new to this site, im sory if i post a message on a wrong section.. i juzt wana get some help on my assignment,, that is, doing a round robin or short job first cpu scheduling algorithm on c or c++.. please help me. thankz a lot!..

for simple round-robin scheduling, add the jobs to the back of a simple queue (use a std::queue for this). to schedule a job, pick the one at the front of the queue. if a job blocks (goes into a wait state) or its time-slice is over, put it back (at the back) of the queue.
for short job first cpu scheduling, use a std::priority_queue instead. with the shorter the (estimated) time to finish, the higher the priority.