im lost


write a program to manage employee information for a company . you have to solve this assignment by using classes and a singly linked list of employees.







main()
{
Employee John;
Employee Sally;
John.SetAge(30);
John.SetYearsOfService(5);
John.SetSalary(50000);

Sally.SetAge(32);
Sally.SetYearsOfService(8);
Sally.SetSalary(40000);

cout << "At AcmeSexist company, John and Sally have the same
job.\n";
cout << "John is " << John.GetAge() << " years old and he has
been with";
cout << "the firm for " << John.GetYearsOfService << "
years.\n";
cout << "John earns $" << John.GetSalary << " dollars per
year.\n\n";
cout << "Sally, on the other hand is " << Sally.GetAge() << "
years old and has";
cout << "been with the company " << Sally.GetYearsOfService;
cout << " years. Yet Sally only makes $" << Sally.GetSalary();
cout << " dollars per year! Something here is unfair.";

So what exactly is wrong with your program? I'm glad to see you finally posted some code with your homework even if you are missing all the classes which your assignment wants and the rest of your code.
Ps. try the <> button in the edit/reply menu or
[code][/code]

Oh and you should try using flush or endl.
Last edited on
noy sure of what you are asking
Lol seriously? You aren't even asking you're giving us your demands so maybe try to ask a question before looking for a response or an answer
Topic archived. No new replies allowed.