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..
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..