delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/07/19:01:00

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why doesn't C++ work!?!?!
Date: Mon, 07 Sep 1998 18:17:53 -0300
Organization: NBTel Internet
Lines: 19
Message-ID: <35F44D81.FEF6FB7D@unb.ca>
References: <000401bdd9b7$84e22e60$f94b08c3 AT arthur>
NNTP-Posting-Host: fctnts05c61.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Arthur wrote:
> > > line in C, you use \n. In C++ you can use endl, but it's not
> > necessary. It
> > > does have it's uses.
> >       You can still use '\n' in C++.
> If you want to be nostalgic, yes. :^)
	It is frequently easier to use \n.

cout << "Hello.\n";
cout << "Hello." << endl;

I like the first line better, but only because it is shorter.
-- 
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019