|Re: delayed console display [message #884018 is a reply to message #883967]
||Sat, 09 June 2012 23:00
| Nick Schweyer
Registered: July 2009
yes, the text from puts() should appear before you have to enter a number.
So try a flush(), after puts(). flush() is emptying the output buffer.
I know this procedure when using printf() within a program.
The flush() statement is necessary after a printf(), if the output from printf() shall be visible immediately when the program executes the printf() statement. Otherwise the output occurs only when the output buffer is filled.
Normally puts() contains a flush() statement internally.
If flush() solves your problem then you should have a look on your OS configuration. I am not an expert but anywhere there should be a setting how output buffering occurs.
Perhaps your basic library included by stdio.h is not up to date.
Eclipse Helios, Qt 4.3, Qt integration, open Suse Linux 11.3
Powered by FUDForum
. Page generated in 0.01762 seconds