View Single Post
Old Apr 9th, 2006, 12:02 PM   #28
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I really think there are too many cooks in the kitchen, but I'm compelled to ask a simple question. Tell me what happens if the user inputs "Big Bucks" in answer to the wage question.
             cout << "\nEmployee Wage: ";
             cin >> wage;
             cout << "\nYears with Company: ";
             cin >> years;
             emp[i] = Employee(id, sex, wage, years);
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote