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
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
Comment