User forums > Help
Console Window Blank?
oBFusCATed:
No, the STL is fine, your usage is wrong :)
wolfcry:
In all the years I've been programming, you're the only person I've ever known say my usage of endl is wrong since it's never been an issue before.
Using endl without the local std:: would only be wrong if I wasn't calling it globally in namespace which I am, so I'm curious to know how my usage is wrong and how this would cause the console window to go blank.
killerbot:
--- Quote ---using namespace std;
--- End quote ---
--> then you can just type cout and endl
So the usage is correct I would say.
If you don't do the using directive, then you have to: std::cout, std::endl
oBFusCATed:
I said your usage of STL is wrong, not endl...
The problem is that << is buffered and the text does not go to the output immediately,
but waits for a flush, the flush happens in endl and you're missing it in your last cout.
killerbot:
that's true, but then the previous prints to cout should have occurred, and it seems those were also invisible ? no ?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version