for (int k = 0; j < students.size() ; j++)

{

studentdetails student = students[j];

student.print();

}

Printable View

- 05-14-2011w00tyAccessing and writing to a vector [Beginner]
for (int k = 0; j < students.size() ; j++)

{

studentdetails student = students[j];

student.print();

} - 05-14-2011tabstopCode:
`studentdetails student = students[j];`

*brand new*student. Thus the student in your vector is ignored. - 05-14-2011w00ty
- 05-14-2011tabstop
- 05-14-2011w00ty