delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/03/06:00:27

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Several questions on data input and checking
Date: 3 Jan 1998 10:33:14 GMT
Organization: The National Capital FreeNet
Lines: 14
Message-ID: <68l45a$1ak@freenet-news.carleton.ca>
References: <34ada35b DOT 324349151 AT news DOT netins DOT net>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


The mixture of gotoxy and cout/cin is possibly the cause of your problem.
Be aware that mixing conio (gotoxy) and stdio (cout, cin) functions can
cause trouble; also be aware stdout is line-buffered, so a newline is
needed or an fflush(stdout) or cout << flush before all input if prompts
are to appear on time. If you want to use gotoxy and other positioning
things, use cprintf() for output. (cprintf() also doesn't buffer.)

--
    .*.  Friendship, companionship, love, and having fun are the reasons for
 -()  <  life. All else; sex, money, fame, etc.; are just to get/express these.
    `*'  Send any and all mail with attachments to the hotmail address please.
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca pgd73 AT hotmail DOT com

- Raw text -


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