|
get output from vector
Hello all,
I have a class called student which includes 3 string variables: fName, lName, and gpa.
I have a vector called "s"
I read a text file into "s" using s.add(new Student(fname, lname, gpa))
The input goes fine, but when I do s.get(i), I am presented with student@memoryLocation.
How do I go about actually getting the s.Student(fname, lname, gpa)?
Thanks for your help!
|