Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #58343

New directions in C: Standard library input and output

From jacob navia <jacob@spamsink.net>
Newsgroups comp.lang.c
Subject New directions in C: Standard library input and output
Date 2015-03-17 21:08 +0100
Organization lccwin
Message-ID <mea1j3$cle$1@speranza.aioe.org> (permalink)

Show all headers | View raw


1.9 Overloading shift operator
1.9.1 Motivation
As described in 1.3 the general advantages of operator overloading 
have been explained. The C standard library should also provide some 
structures which already have some operators overloaded in order to 
perform, for example, input and output.

For output the name outc should be used, for stderr the name errc and 
for input the name inc. There should also be definitions for newline, 
for example lend.

1.9.2 Syntax
outc << "This is a string on stdout" << lend;
errc << "And this on stderr" << lend;

Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

New directions in C: Standard library input and output jacob navia <jacob@spamsink.net> - 2015-03-17 21:08 +0100
  Re: New directions in C: Standard library input and output Bartc <bc@freeuk.com> - 2015-03-17 20:18 +0000
  Re: New directions in C: Standard library input and output jacob navia <jacob@spamsink.net> - 2015-03-17 21:29 +0100
  Re: New directions in C: Standard library input and output Melzzzzz <mel@zzzzz.com> - 2015-03-18 01:00 +0100
    Re: New directions in C: Standard library input and output jacob navia <jacob@jacob.remcomp.fr> - 2015-03-18 09:00 +0100
      Re: New directions in C: Standard library input and output Melzzzzz <mel@zzzzz.com> - 2015-03-18 10:45 +0100

csiph-web