delorie.com/archives/browse.cgi | search |
From: | "Edmund Horner" <ejrh AT paradise DOT net DOT nz> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <8pap3s$b0m$1 AT info DOT cyf-kr DOT edu DOT pl> |
Subject: | Re: Type of endl |
Lines: | 27 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.3018.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.3018.1300 |
Organization: | Paradise Net |
Message-ID: | <968422215.288842@shelley.paradise.net.nz> |
Cache-Post-Path: | shelley.paradise.net.nz!unknown AT 203-96-158-27 DOT tnt4 DOT paradise DOT net DOT nz |
X-Cache: | nntpcache 2.4.0b5 (see http://www.nntpcache.org/) |
Date: | Sat, 9 Sep 2000 02:12:09 +1200 |
NNTP-Posting-Host: | 203.96.152.26 |
X-Complaints-To: | newsadmin AT xtra DOT co DOT nz |
X-Trace: | news.xtra.co.nz 968422216 203.96.152.26 (Sat, 09 Sep 2000 02:10:16 NZST) |
NNTP-Posting-Date: | Sat, 09 Sep 2000 02:10:16 NZST |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
why don't you look in <iostream.h> ? ($DJDIR)/include/iostream.h "Rafał Maj" <r_maj AT poczta DOT onet DOT pl> wrote in message news:8pap3s$b0m$1 AT info DOT cyf-kr DOT edu DOT pl... > Hi, > What is type of "endl" ? > > I want to write operator << that will take endl as argument like this : > > cConsole { public : > cConsole() {}; > void println(); > operator<<(char* s) { cout<<s; } > operator<<( unknown_type ENDL) { // <<<<<<< > println(); > } > }; > > main() { > cConsole output; > output << "hi !" << endl; > } > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |