www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/27/01:03:22

Date: Wed, 26 Aug 92 22:19:58 -0600
From: kok AT mozart DOT cs DOT colostate DOT edu (jan kok)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: cin/cout bug

//This is with djdev107 and djgcc222...


//Compile and run this.  Type in 79 characters (or so, it's not critical)
//then press ENTER twice.  Repeat the characters and ENTERs about 6 more 
//times.  On my machine, the disk light then flickers and the machine goes 
//out to lunch.  Fortunately my disk hasn't been zapped, even after running 
//variations of this program dozens of times.

#include <iostream.h>
main()
{
    char key;
    while (1) {
	cin >> key;
	cout << key;
    }
}

- Raw text -


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