Any ideas or suggestions? I've tried to trace back the outstream as it's overloaded and every step of the way it's fine. I simply don't understand it. -.-

Click to expand...

Try if std::endl makes a difference. Because std::endl is the end of line marker, and endl could be anything. If you added a variable "int endl;" at the beginning of a function that would produce some rather funny results. BTW. Once your programs get larger, you will very much prefer std::cout to cout because it provides a lot more information when you read code.

macrumors 68040

We don't have enough info. meh.GetNumberOfTracks()... What does it return? Did you write the operator<< method to handle this? How about ac.getSizeOfCollection? Can you output ANYTHING after one of these? Is the problem just endl? What is the problem? A compiler error? What is it? A runtime error? Incorrect results?

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.