+ 2
What does the 'cout' operator do?
When the cout operator has to output something, does it convert it to a string? Or how does it work?
2 ответов
+ 1
cout has overloaded operator "<<" which supports almost all basic types. If you want to make a string from different types, you can use stringstreams
+ 1
I'm asking because I have the task to code an own vectorclass and the print method I created doesn't work, it outputs weird symbols