[comp.lang.c++] A couple of bugs with cin in 1.1 c++ on a vax

sher@rochester.UUCP (02/10/87)

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 <stream.h>
#include <stdio.h>
#include <string.h>

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