delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/01/15:47:29

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: dos sound and cout
Date: Sun, 01 Apr 2001 20:27:43 +0100
Lines: 11
Message-ID: <120fct0fee5v96p3knjjkf588vtlcu4go8@4ax.com>
References: <9a7pk9$vod$1 AT news DOT chatlink DOT com>
NNTP-Posting-Host: modem-47.deorwine.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 986153229 31952 62.136.153.175 (1 Apr 2001 19:27:09 GMT)
NNTP-Posting-Date: 1 Apr 2001 19:27:09 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Chris" <igneous AT surfbest DOT net> wrote:

> why does it  make all the sounds and then
> print the frequencies

Because of buffering in the iostream.

>  std::cout<<b<<" ";

 std::cout<<b<<" "<<flush;

- Raw text -


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