Click here to Skip to main content
15,904,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Silly Excel Pin
Anonymous10-Aug-03 10:32
Anonymous10-Aug-03 10:32 
GeneralRe: Silly Excel Pin
Joey Bloggs10-Aug-03 17:13
Joey Bloggs10-Aug-03 17:13 
GeneralRe: Silly Excel Pin
Anonymous11-Aug-03 9:52
Anonymous11-Aug-03 9:52 
GeneralForcing "cout" to show what's in its buffer. Pin
WREY9-Aug-03 9:49
WREY9-Aug-03 9:49 
GeneralRe: Forcing "cout" to show what's in its buffer. Pin
Nick Parker9-Aug-03 9:57
protectorNick Parker9-Aug-03 9:57 
GeneralRe: Forcing "cout" to show what's in its buffer. Pin
WREY9-Aug-03 10:28
WREY9-Aug-03 10:28 
GeneralProblem found. Pin
WREY9-Aug-03 11:21
WREY9-Aug-03 11:21 
GeneralRe: Forcing "cout" to show what's in its buffer. Pin
Hosam Aly Mahmoud9-Aug-03 11:46
Hosam Aly Mahmoud9-Aug-03 11:46 
I do not know whether I understand your problem, but - if I correctly understand - you can use cout << flush to force everything to be displayed on your screen (or the standard output). This piece of code may be needed when using different libraries, e.g. using both cout and getch(). For example:
cout << "Press any key to continue...";
getch();

will give no output and will wait for a key to be pressed. Meanwhile,
cout << "Press any key to continue..." << flush;
getch();

will give the desired output. Notice that endl and cin also call flush, so you don't usually need to call it explicitly.

Hope this helps.

<marquee>

Hosam Aly Mahmoud


GeneralRe: Forcing &quot;cout&quot; to show what's in its buffer. Pin
Jonathan de Halleux11-Aug-03 1:25
Jonathan de Halleux11-Aug-03 1:25 
Questionadding gutters to rich edit controls? Pin
mcguile2579-Aug-03 8:20
mcguile2579-Aug-03 8:20 
GeneralCalling an SDI from another SDI Pin
skea9-Aug-03 8:06
skea9-Aug-03 8:06 
QuestionMinimize to sys tray when someone tries to close the dialog? Pin
Varun Shoor9-Aug-03 7:28
Varun Shoor9-Aug-03 7:28 
AnswerRe: Minimize to sys tray when someone tries to close the dialog? Pin
User 66589-Aug-03 7:36
User 66589-Aug-03 7:36 
AnswerRe: Minimize to sys tray when someone tries to close the dialog? Pin
wb9-Aug-03 7:36
wb9-Aug-03 7:36 
GeneralRe: Minimize to sys tray when someone tries to close the dialog? Pin
User 66589-Aug-03 7:44
User 66589-Aug-03 7:44 
GeneralRe: Minimize to sys tray when someone tries to close the dialog? Pin
Varun Shoor9-Aug-03 7:49
Varun Shoor9-Aug-03 7:49 
GeneralRe: Minimize to sys tray when someone tries to close the dialog? Pin
User 66589-Aug-03 8:25
User 66589-Aug-03 8:25 
GeneralEncrypting and decrypting objects Pin
Vassilis Papoulidis9-Aug-03 6:51
Vassilis Papoulidis9-Aug-03 6:51 
GeneralRe: Encrypting and decrypting objects Pin
Michael Dunn9-Aug-03 7:49
sitebuilderMichael Dunn9-Aug-03 7:49 
QuestionDocking toolbars / windows without mfc? Pin
gri9-Aug-03 5:05
gri9-Aug-03 5:05 
Generalvideo stream Pin
mr pier9-Aug-03 3:34
mr pier9-Aug-03 3:34 
Generaltrouble in ATL Pin
novachen9-Aug-03 3:07
novachen9-Aug-03 3:07 
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 6:31
sitebuilderMichael Dunn9-Aug-03 6:31 
GeneralRe: trouble in ATL Pin
novachen9-Aug-03 17:07
novachen9-Aug-03 17:07 
GeneralRe: trouble in ATL Pin
Michael Dunn9-Aug-03 17:22
sitebuilderMichael Dunn9-Aug-03 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.