Two output problems

Guenter Lichtenberg lichten at sron.nl
Thu Mar 16 08:03:51 GMT 2006


On Thursday 16 March 2006 01:58, Alvin Beach wrote:
> On 3/15/06, Ian Gordon <iangordon at uklinux.net> wrote:
> > Hi
> >                 When using Kdevelop with C++ and Qt3 under  Suse 10 I
> > have encountered a strange problem.
> >  I sometimes include a cout statement in a program to ensure it is
> > performing as expected but although compilation is successful  no output
> > appears on the screen.
>
> Does the output appear when the program terminates? I found that
> anything written to stdout/cout doesn't appear till after the program
> is done. To work around this, I tend to write to stderr/cerr instead.
>

Hi -
	to prevent that it only appears at the end of execution you can also use
 
cout << "annoying debug message << endl;
or 
cout  << "annoying debug message << flush;

flush flushes the output, endl does that and also adds a newline.

BTW, your messages should appear in the 'Application' tab (or window). I use 
tabs and normally, when you run the program, kdevelop should switch 
automatically to this tab. Did you check if that this is also the case for 
you?

Cheers
gl
-- 
Günter Lichtenberg ========>mailto:lichten at sron.nl

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list