Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltricky question about endl Pin
Erich Ruth7-Nov-00 7:47
Erich Ruth7-Nov-00 7:47 
I have a function that keeps returning a value. For some reason, when I have at the end of that function

cout << "." << endl;

everything works, I get a new value each time. If I leave this command off or type cout << "."; I get an error in my calculations.

Several sources say "the endl command outputs a newline character and flush the stream". How can I "flush the stream" without creating a new line?

Any response any one can give me will be greatly appreciated.

Sincerely,
Erich J. Ruth
GeneralRe: tricky question about endl Pin
Michael Dunn7-Nov-00 9:17
sitebuilderMichael Dunn7-Nov-00 9:17 
GeneralRe: tricky question about endl Pin
Erich Ruth7-Nov-00 11:40
Erich Ruth7-Nov-00 11:40 
GeneralRe: tricky question about endl Pin
Michael Dunn7-Nov-00 14:37
sitebuilderMichael Dunn7-Nov-00 14:37 
GeneralRe: tricky question about endl Pin
Erich Ruth8-Nov-00 3:27
Erich Ruth8-Nov-00 3:27 
GeneralRe: tricky question about endl Pin
Erik Funkenbusch8-Nov-00 10:38
Erik Funkenbusch8-Nov-00 10:38 
GeneralProblem to get computer name Pin
Cheickna7-Nov-00 7:11
Cheickna7-Nov-00 7:11 
GeneralOpening file resizes the frame Pin
Guillaume Belzile7-Nov-00 5:50
sussGuillaume Belzile7-Nov-00 5:50 
Generalhelp with C++ and TCL Pin
Alejandro7-Nov-00 4:32
Alejandro7-Nov-00 4:32 
GeneralDCOM vs. Sockets Pin
josh7-Nov-00 0:40
josh7-Nov-00 0:40 
GeneralDLL Dialog Misery Pin
Justin Somerville6-Nov-00 20:39
Justin Somerville6-Nov-00 20:39 
GeneralRe: DLL Dialog Misery Pin
David Fedolfi14-Nov-00 3:46
David Fedolfi14-Nov-00 3:46 
GeneralCFileDialog Default Directory Pin
Ron Ginsberg6-Nov-00 13:24
Ron Ginsberg6-Nov-00 13:24 
GeneralRe: CFileDialog Default Directory Pin
Michael Dunn6-Nov-00 16:05
sitebuilderMichael Dunn6-Nov-00 16:05 
GeneralRe: CFileDialog Default Directory Pin
Ron Ginsberg7-Nov-00 5:35
Ron Ginsberg7-Nov-00 5:35 
GeneralRe: CFileDialog Default Directory Pin
Berkut7-Nov-00 6:10
Berkut7-Nov-00 6:10 
GeneralComputers names on network Pin
CHEICKNA TRAORE6-Nov-00 11:08
CHEICKNA TRAORE6-Nov-00 11:08 
GeneralRe: Computers names on network Pin
Christian6-Nov-00 15:07
Christian6-Nov-00 15:07 
GeneralGetDeviceCaps(BITSPIXEL) Pin
kk96-Nov-00 9:12
kk96-Nov-00 9:12 
GeneralSetup INF Help Pin
KrustY6-Nov-00 3:06
KrustY6-Nov-00 3:06 
GeneralRe: Setup INF Help Pin
manish chaudhari6-Nov-00 4:54
manish chaudhari6-Nov-00 4:54 
GeneralSetup INF Help Pin
KrustY6-Nov-00 3:05
KrustY6-Nov-00 3:05 
GeneralDifferentiate Windows Explorer and IE Pin
Eq6-Nov-00 0:04
Eq6-Nov-00 0:04 
GeneralCopying a value from ListCtrl to Clipboard Pin
Ammar5-Nov-00 23:59
Ammar5-Nov-00 23:59 
GeneralRe: Copying a value from ListCtrl to Clipboard Pin
Anders Molin6-Nov-00 0:23
professionalAnders Molin6-Nov-00 0:23 

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.