I want to pass by reference a Queue
of type string
that I created to save names, to display them by screen these must be passed by reference since I do not want to have everything in the main
and this object in the future it must be manipulated in other functions.
queue<string>datos;
datos.push("Albert");
datos.push("Maria");
datos.push("Juan");
Something like;
void listar( queue datos) {
//Codigo...
}