|
-
Jan 2nd, 2012, 06:07 AM
#1
Thread Starter
New Member
Name as a pointer
Hello, what data structure should I use if I need use name as a pointer?
example:
I prepare information about my workes leaves. I need know how much days the had sick leave. And I need to have them in array or something like this, But i do not want use their ID number but surname:
"smith" = 10
"Herr" = 18
"Uhrmann" = 3
etc...
How can I solve this?
Which data structure can I use? Is it possible to use array?
Greetings
Andrzej
-
Jan 2nd, 2012, 07:10 AM
#2
Frenzied Member
Re: Name as a pointer
are you reporting all of the workers or just some (on demand )
a pointer is just a value that you can use to access a structure
in db its the data's address but we don't need to nknow that just
current pointer, move pointer, moveback pointer etc
you can hold the information in what ever fashion you want
what are the numbers in your post representing?
the number of smiths or the place where smith is stored?
you can use id number for the generating of the report but just output everything else
here to help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|