User Profile
Collapse
-
Thank you for your help it is now working. If I need anymore help I will be back. -
Hey Banfa,
Thank you for responding. Here is what I mean as you can see after running my program the first question that is asked is "Please Enter the Health Insurance type PPO or HMO:", then Life insurance, and then vacation days. Health Insurance, life insurance, and vacation days are in my benefit class. If you take a look at my main you can see that I do not have anything calling my benefits class. I have Employee one to call...Leave a comment:
-
Here is a copy of my code.I just ran it and it is working.
...Code:#include <iostream> #include <stdlib.h> #include <string> #include <iomanip> using namespace std; // ========== Non-class Methods ========== void displayDivider(string outputTitle) { cout << "**************** " + outputTitle + " ****************" << endl;Last edited by Banfa; Feb 9 '12, 11:12 AM. Reason: Added [code]...[/code] tags round the code please use them in futureLeave a comment:
-
Why does my benefit class run in my program without me calling it.
The problem that I am having is when I run my program my Benefit class starts running and I have not called it my main but for some reason it is running first instead of my Employee class. This whole program works fine except for the benefit class starts before my Employee class. Can you help me figure it out.
...Code:#include <iostream> #include <stdlib.h> #include <string> #include <iomanip>
Last edited by Banfa; Feb 8 '12, 03:08 PM. Reason: Added [code]...[/code] tags round the code please use them in future. -
Thank you Rabbit for your help. I got it to work just fine. Now I am having a problem when I run my program instead of getting my Employee::Emplo yee() which is where I ask for your first name, last name etc.Instead I get my benefit class to start and I do not have it called. Can you help.Leave a comment:
-
I keep coming up with error 2504 base class undefined
I am trying to write this code that has an abstract class of iEmployee. I created the class and I am trying to get the Employee class to use it. I keep coming up with an error 2504 base class undefined. Can you please help me figure out why and how can I fix it.
#include <iostream>
#include <stdlib.h>
#include <string>
#include <iomanip>
using namespace std;
...
No activity results to display
Show More
Leave a comment: