Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2248 Pin
susanne123-Mar-09 2:16
susanne123-Mar-09 2:16 
GeneralRe: error C2248 Pin
Cedric Moonen23-Mar-09 2:28
Cedric Moonen23-Mar-09 2:28 
GeneralRe: error C2248 Pin
susanne123-Mar-09 3:21
susanne123-Mar-09 3:21 
GeneralRe: error C2248 Pin
Cedric Moonen23-Mar-09 3:27
Cedric Moonen23-Mar-09 3:27 
Questionapplication for windows mobile Pin
trioum23-Mar-09 1:28
trioum23-Mar-09 1:28 
AnswerRe: application for windows mobile Pin
CPallini23-Mar-09 1:29
mveCPallini23-Mar-09 1:29 
AnswerRe: application for windows mobile Pin
Eytukan23-Mar-09 1:40
Eytukan23-Mar-09 1:40 
QuestionProblem with my c++ project :'( Pin
Neal beavis23-Mar-09 1:08
Neal beavis23-Mar-09 1:08 
Hi poeple,

I have been set this assignment and i just dont know how to start it or even think how to do it i was wondering if anyone could shed some light on it for me?.

The program is required to store information on a variable number of members of staff in a company. It will use 6 vectors to record the following information.

Staff Number - a 3 digit number in the range 100- 999.
Basic pay rate
Overtime pay rate
Day of birth
Month of birth
Year of birth

For example, if there were 7 staff members the vectors could look as follows:-

staff number 211 302 511 123 145 303 476

basic pay 7.50 7.50 9.00 7.50 8.00 9.00 12.00

OT pay 10.00 10.00 13.00 10.00 12.00 13.00 18.00

day of birth 12 15 25 27 9 6 1

month of birth 8 9 12 10 12 1 1

year of birth 1990 1990 1983 1987 1985 1980 1976


The program should allow the user to specify the number of staff and then enter the data. Once the data have been entered the user should be presented with the following text menu.

1. Print staff details
2. Quit

If the user selects option 1 they should be asked for the staff number (e.g. 511 in the example above). It will be necessary to find the staff number in the first vector and then print out the following information.


Basic pay
Overtime pay
Age

Age should be calculated by using a function, it will be necessary to ask the user to input today’s date. You will need to decide whether to ask for today’s date in the main program and pass it to the function or to ask for it within the function.

After the information has been displayed the menu should be displayed again and this process repeated until the user chooses option 2.

To gain additional marks the menu should be modified as follows:-

1. Print staff details
2. Add member of staff
3. Quit

Option 2 should now give the user the opportunity of adding an additional member of staff.

Cheers guys
QuestionRe: Problem with my c++ project :'( Pin
CPallini23-Mar-09 1:13
mveCPallini23-Mar-09 1:13 
AnswerRe: Problem with my c++ project :'( Pin
Neal beavis23-Mar-09 1:18
Neal beavis23-Mar-09 1:18 
QuestionRe: Problem with my c++ project :'( Pin
CPallini23-Mar-09 1:28
mveCPallini23-Mar-09 1:28 
AnswerRe: Problem with my c++ project :'( Pin
Neal beavis23-Mar-09 1:35
Neal beavis23-Mar-09 1:35 
GeneralRe: Problem with my c++ project :'( Pin
CPallini23-Mar-09 1:49
mveCPallini23-Mar-09 1:49 
GeneralRe: Problem with my c++ project :'( Pin
TinyDevices23-Mar-09 2:05
professionalTinyDevices23-Mar-09 2:05 
QuestionRe: Problem with my c++ project :'( Pin
David Crow23-Mar-09 3:23
David Crow23-Mar-09 3:23 
QuestionGet String size Height and Width Pin
~Khatri Mitesh~23-Mar-09 1:04
~Khatri Mitesh~23-Mar-09 1:04 
AnswerRe: Get String size Height and Width Pin
Cedric Moonen23-Mar-09 1:06
Cedric Moonen23-Mar-09 1:06 
AnswerRe: Get String size Height and Width Pin
led mike23-Mar-09 4:41
led mike23-Mar-09 4:41 
AnswerRe: Get String size Height and Width Pin
Joe Woodbury23-Mar-09 12:24
professionalJoe Woodbury23-Mar-09 12:24 
QuestionVIDEO FOR WINDOWS - drawing TEXTOUT Pin
pabloesso23-Mar-09 0:24
pabloesso23-Mar-09 0:24 
AnswerRe: VIDEO FOR WINDOWS - drawing TEXTOUT Pin
Jonathan Davies23-Mar-09 2:52
Jonathan Davies23-Mar-09 2:52 
AnswerRe: VIDEO FOR WINDOWS - drawing TEXTOUT Pin
Jonathan Davies23-Mar-09 3:32
Jonathan Davies23-Mar-09 3:32 
GeneralRe: VIDEO FOR WINDOWS - drawing TEXTOUT Pin
pabloesso23-Mar-09 3:40
pabloesso23-Mar-09 3:40 
GeneralRe: VIDEO FOR WINDOWS - drawing TEXTOUT Pin
pabloesso24-Mar-09 1:23
pabloesso24-Mar-09 1:23 
GeneralRe: VIDEO FOR WINDOWS - drawing TEXTOUT Pin
pabloesso29-Mar-09 7:02
pabloesso29-Mar-09 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.