Results 1 to 2 of 2

Thread: Name as a pointer

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2012
    Posts
    1

    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

  2. #2
    Frenzied Member
    Join Date
    Nov 2010
    Posts
    1,470

    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
  •  



Click Here to Expand Forum to Full Width