Comp-345/Part 3/Orders.cpp
void OrderList::move(int x, int y)
{
	Order* temp;
	temp = (this->orderQueue[x]);
	this->orderQueue.erase(orderQueue.begin() + x);
	this->orderQueue.insert(orderQueue.begin() + y, temp);


}
//move an order from index x to index y

move an order from index x to index y
move an order from index x to index y
void OrderList::move(int x, int y)
{
	Order* temp;
	temp = (this->orderQueue[x]);
	this->orderQueue.erase(orderQueue.begin() + x);
	this->orderQueue.insert(orderQueue.begin() + y, temp);
}
void OrderList :: move ( int x , int y ) { Order * temp ; temp = ( this -> orderQueue [ x ] ) ; this -> orderQueue . erase ( orderQueue . begin ( ) + x ) ; this -> orderQueue . insert ( orderQueue . begin ( ) + y , temp ) ; }
move an order from index x to index y
move an order from index x to index y