Vector <class>

can some one help me or give me the algorithm in this problem:
a 'class' named STUDENT has attributes like Name Age ID_Number Grades. i should store in a 'vector' and pop it out of it.. how can i store it in vector?i am having hard times here coz im so f*cked up with a lots of exams... please help me out here... and please give me some hint not just algorithm maybe even a part of the code will do please?
class and use vector...
1
2
3
4
5
class student{
.............
}

vector<student> listofstudent;
do you mind giving me a lil more details of it?
1
2
3
4
5
6
7
8
9
//create a vector
vector<student> studentVector;

//add a student
student student1;
studentVector.push_back(student1);

//change a value of that student
studentVector[0].setName("Jerry");


Further you can use iterators to sort through a large vector of students
http://cplusplus.com/reference/stl/vector/
please hi-jack the code please????
Topic archived. No new replies allowed.