vector template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrtcnr
    New Member
    • Oct 2006
    • 6

    #1

    vector template

    Hi everyone
    This is my assignment.

    Assume you are given a large vector of records. Each record has two main fields, 7 digit ID_NUMBER and the REST as 73 byte long rest of the record. You are to sort these records in ascending order of ID_NUMBER, using all four sorting techniques.

    I am comfortable at using these 4 sorting techniques but for using them I have to create a vector of length NUMRECORDS in memory. And the ID_NUMBER will be randomly created.

    I just need help for that vector template. If someone can help about that randomly created vectors, i will really appreaciate it.
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    Originally posted by mrtcnr
    Hi everyone
    This is my assignment.

    Assume you are given a large vector of records. Each record has two main fields, 7 digit ID_NUMBER and the REST as 73 byte long rest of the record. You are to sort these records in ascending order of ID_NUMBER, using all four sorting techniques.

    I am comfortable at using these 4 sorting techniques but for using them I have to create a vector of length NUMRECORDS in memory. And the ID_NUMBER will be randomly created.

    I just need help for that vector template. If someone can help about that randomly created vectors, i will really appreaciate it.
    have a look at
    Last edited by Banfa; Nov 17 '06, 11:50 AM. Reason: Added [url] ... [/url] tags

    Comment

    Working...