As you might know I am pretty knew to using the STL I just started looking at it a couple of days ago. Anyway...
I have two deques. One is my deck of cards (52 elements) the other is my hand which is empty on creation.
I want to take N cards from the deck and put them into my hand.
I am so confused as to how to do this I need to see an example of how to copy an element of one deque to another.
This is what I feel like doing, but it is pretty obvious that it wont work.
I am so lostCode:void draw_cards(deque<Cards> *hand, deque<Cards> *deck, int num){ for(int i=0;i<num;i++){ hand->push_front( /*deck[i] element to be inserted here */); deck->pop_front(); } }