Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!husc6!seismo!rochester!sher From: sher@rochester.UUCP Newsgroups: comp.lang.c++ Subject: A couple of bugs with cin in 1.1 c++ on a vax Message-ID: <24650@rochester.ARPA> Date: Tue, 10-Feb-87 13:22:37 EST Article-I.D.: rocheste.24650 Posted: Tue Feb 10 13:22:37 1987 Date-Received: Wed, 11-Feb-87 19:39:20 EST Reply-To: sher@rochester.UUCP (David Sher) Distribution: world Organization: U of Rochester, CS Dept, Rochester, NY Lines: 41 Bug1: On version 1.1 C++ on vax runing 4.2bsd cin >> double(c); seems to put 0 in c rather than the value entered. Are my semantics wrong or is this a bug? Bug2: This may have been hashed out before in this group but I think we are running 1.1 C++ and this test program: #include #include #include int main ( int argc , char *argv[] ) { // iterate generating the table entries for(;;) { // the convolution with the first template double c = 0; cerr << "Please enter value for convolution - "; cerr.flush(); cin >> c; cerr << "The entry is " << c ; cerr.flush(); } // exit successfully return 0; } causes a seg violation when cerr.flush is called. Oh yes we are runing 4.2 unix on a vax. Any ideas? -- -David Sher sher@rochester {allegra,seismo}!rochester!sher