Hi, I was wondering if you can declare double integers as unsigned. I'm writing a program that can not accept negative prices and the prices declared are double. I then test the input with the following...If this isn't possibe what would be a way to test that only positive values were entered. Thanks for any help.
1 2 3 4 5 6 7 8 9 10 11 12
unsigneddouble single, half, full;
cin >> single >> half >> full;
if(!cin.eof() && cin.good()){
call...member function
}
else
{
cout << "Invalid price entered"
}