mulitple vectors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chatnito
    New Member
    • Mar 2007
    • 1

    mulitple vectors

    Hi,

    I have to implement following logic:

    I have list of student roll numbers.
    read data eg: all student details belongs to different departmens from the database.

    insert data into multiple vecotrs depending department database field. so each vector is belongs to one department. All the vectors should point to the single list.
    I don't know how many departments are there?.


    while reading database,Every time if i found new department, i want to create new vector and insert the vector. Otherwise, add the record to existing vector.


    how to do this...

    please help me
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    for a start you need to learn about STL vectors, have a look at
    http://www.davethehat. com/articles/tiny_stl.htm
    http://pages.cpsc.ucal gary.ca/~kremer/STL/1024x768/index.html

    then design your data structures and how you will map information from the database into them

    Comment

    Working...