Click to See Complete Forum and Search --> : cin cant float??


knavely
01-23-2002, 07:23 PM
float x;
cout << "\n enterafloat";
cin >> x;
cout << x;

why does this crash my program if i enter a number with a decimal??
in all the examples i find this is what they do but i cant, i get "floating point:OVe&"
or somthing..

knavely
01-23-2002, 07:53 PM
OK i figured out the problem allright, and it called Borland turbo C++ !!!!!

i tried it out here at the SUN lab. This turbo C++ is a night mare.