monoceres Posted December 4, 2008 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!
Valik Posted December 4, 2008 Posted December 4, 2008 Use std::endl to flush the stream. std::cout<<"Test"<<std::endl;
monoceres Posted December 4, 2008 Author 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!
Wus Posted December 5, 2008 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.
Valik Posted December 5, 2008 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.
monoceres Posted December 5, 2008 Author 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!
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