By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

vector template

P: 6
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.
Nov 16 '06 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
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
http://www.cppreference.com/cppvector/index.html
Nov 17 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.