Please do not show all your long code listing. Say what is the problem of printing a vector? I think you understand that to output a vector in a stream its elements also should be outputed. That is if you have a vector