My problem is that this code wont print the string when i call cout << equipa << endl;
I add that i use Eclipse with MinGW as a compiler.
Thanks in advance.
equipa has a size of 0 in your function. You need to create space to insert characters.
You can do that using the proper constructor or using push_back