c++ input stream not waiting for input with extraction operator overload
- by John
This problem is annoying me. Instead of waiting for input, it just closes. I've been trying to figure this out for a while now. Any ideas?
istream& operator>>(istream& is, Account &a) {
cout << "Enter an accoutn number: ";
is >> a.accountNo;
cout << endl;
cout << "Balance: ";
is >> a.bal;
return is;
}