cout << "Balance : ";
cin >> file.balance;
if(file.balance < 0)
{
cout << "Please Enter postivie numerical value for balance: ";
cin >> file.balance;
}
if(cin.peek() == '$')
{
// get one character
cin.ignore('$')
}
//read the number
How do i get the character get.ch?
and then how do i display the new numbers w/o the $ there

Start a new topic
Add Reply




MultiQuote


| 


