C++ : cout with a terenary if-statement

I get this ERROR: "error: overloaded function with no contextual type information".

cout << (i % 5 == 0) ? endl : "";

Is what I am doing possible; am I just doing it wrong, or do I have to overload the << operator?

9
задан 20 April 2011 в 06:38
поделиться