Do this:
Code:
theDeck.show(std::cout);
Basically you pass the type of stream you want the data being forwarded to. In our case the console/bash (std::cout) will do just fine.
The meaning of the excercise I gave you is not to fully understand the internal workings of the library (classes) I gave you, but more on training you how to use them. Then later we find out what is going on bit by bit. We'll disect it like we are medics examining a body.