delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/23/12:17:55

From: "Gwen" <mb11363 AT chello DOT be>
Subject: Re: what's the equivalent of <iostream.h> for gpp ?
Newsgroups: comp.os.msdos.djgpp
References: <01c14445$8cc5f3e0$bc8684d5 AT feta>
Message-ID: <01c14449$4c5c3fe0$bc8684d5@feta>
X-Newsreader: Microsoft Internet News 4.70.1162
Lines: 12
Date: Sun, 23 Sep 2001 15:57:56 GMT
NNTP-Posting-Host: 213.132.134.188
X-Complaints-To: abuse AT chello DOT be
X-Trace: news.chello.be 1001260676 213.132.134.188 (Sun, 23 Sep 2001 17:57:56 MET DST)
NNTP-Posting-Date: Sun, 23 Sep 2001 17:57:56 MET DST
Organization: Chello Usenet Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I'm experiencing some problems with stdio.h and I want to use iostream.h,
In fact, I think I'll have the same problems with iostream.h : I can't
recognize when I read a file when there is a carriage return.
I tried this : 

int c=getc(f);
while (c!=13) { addch(c); }

It displays all the characteres of my files, with the cariage return but it
doesn't break the loop and it reachs the end of file and loops forever.


- Raw text -


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