monoceres Posted December 4, 2008 Share Posted December 4, 2008 (edited) Hi! How do I write to the SciTe console just like ConsoleWrite() does? When I try writing to it with std::cout the data isn't shown until the autoit process terminates. Do I need to tell SciTe that I have written to the standard stream or something? Edited December 4, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Valik Posted December 4, 2008 Share Posted December 4, 2008 Use std::endl to flush the stream. std::cout<<"Test"<<std::endl; Link to comment Share on other sites More sharing options...
monoceres Posted December 4, 2008 Author Share Posted December 4, 2008 Use std::endl to flush the stream. std::cout<<"Test"<<std::endl; Oh, never would have figured that out. I tried using "\n" for line breaks. Thanks! Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Wus Posted December 5, 2008 Share Posted December 5, 2008 Is it not standard to use std::endl for outputting? I never even thought to try to use a "\n" to be honest. Link to comment Share on other sites More sharing options...
Valik Posted December 5, 2008 Share Posted December 5, 2008 It is standard. But apparently monocres didn't read where streams are buffered and need flushed which is one of a couple things std::endl does. Link to comment Share on other sites More sharing options...
monoceres Posted December 5, 2008 Author Share Posted December 5, 2008 (edited) I guess I read something about it when I started learning C++ a few years ago, but since then I really have had no reason to read up on std::endl since there was no visual difference between it and "\n" when doing regular C++ console apps. Edited December 5, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now