Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #121082
| From | Muttley@DastardlyHQ.org |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: printf() takes priority here!!! |
| Date | 2024-11-29 12:48 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <vicd71$138op$1@dont-email.me> (permalink) |
| References | (3 earlier) <vic4p7$11oi6$1@raubtier-asyl.eternal-september.org> <vic51r$11q6p$1@dont-email.me> <vicafn$12q46$1@raubtier-asyl.eternal-september.org> <vicalb$12r4n$1@dont-email.me> <vicb27$12tfj$1@raubtier-asyl.eternal-september.org> |
On Fri, 29 Nov 2024 13:12:54 +0100 Bonita Montero <Bonita.Montero@gmail.com> wibbled: >Am 29.11.2024 um 13:04 schrieb Muttley@DastardlyHQ.org: >> On Fri, 29 Nov 2024 13:03:01 +0100 >> Bonita Montero <Bonita.Montero@gmail.com> wibbled: >>> Am 29.11.2024 um 11:29 schrieb Muttley@DastardlyHQ.org: >>>> On Fri, 29 Nov 2024 11:25:41 +0100 >>>> Bonita Montero <Bonita.Montero@gmail.com> wibbled: >>>>> Am 29.11.2024 um 11:13 schrieb Muttley@DastardlyHQ.org: >>>>> >>>>>> It works as expected on MacOS. The newline should automatically flush >cout >>>>>> stdout just as it does in printf regardless of whether the C and C++ >>> streams >>>>>> are linked. >>>>> >>>>> std::endl guarantees a flush, but not \n. >>>>> I use that often to have buffering of multiple lines. >>>> >>>> I've never seen \n NOT flush stdout. .. >>> >>> I'm talking about cout, not stdout. >> >> Where do you think cout writes to? > >The buffering between stdout and cout is not forcfully joined. I doubt there's 2 stages of buffering, it would be very inefficient.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
printf() takes priority here!!! Student Project <student@invalid.invalid> - 2024-11-29 05:35 +0000
Re: printf() takes priority here!!! Ralf Goertz <me@myprovider.invalid> - 2024-11-29 09:10 +0100
Re: printf() takes priority here!!! Ralf Fassel <ralfixx@gmx.de> - 2024-11-29 10:54 +0100
Re: printf() takes priority here!!! Muttley@DastardlyHQ.org - 2024-11-29 10:13 +0000
Re: printf() takes priority here!!! Bonita Montero <Bonita.Montero@gmail.com> - 2024-11-29 11:25 +0100
Re: printf() takes priority here!!! Muttley@DastardlyHQ.org - 2024-11-29 10:29 +0000
Re: printf() takes priority here!!! Bonita Montero <Bonita.Montero@gmail.com> - 2024-11-29 13:03 +0100
Re: printf() takes priority here!!! Muttley@DastardlyHQ.org - 2024-11-29 12:04 +0000
Re: printf() takes priority here!!! Bonita Montero <Bonita.Montero@gmail.com> - 2024-11-29 13:12 +0100
Re: printf() takes priority here!!! Muttley@DastardlyHQ.org - 2024-11-29 12:48 +0000
Re: printf() takes priority here!!! Bonita Montero <Bonita.Montero@gmail.com> - 2024-11-29 13:56 +0100
Re: printf() takes priority here!!! James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-11-29 19:11 -0500
Re: printf() takes priority here!!! wij <wyniijj5@gmail.com> - 2024-11-30 09:12 +0800
Re: printf() takes priority here!!! Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-11-29 18:41 -0800
Re: printf() takes priority here!!! James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-11-30 10:22 -0500
Re: printf() takes priority here!!! Muttley@dastardlyhq.com - 2024-11-30 10:06 +0000
csiph-web