View Single Post
  #1 (permalink)  
Old 09-12-2008, 06:02 AM
bluelinenetworks bluelinenetworks is offline
Member
 
Join Date: Sep 2008
Posts: 1
bluelinenetworks is on a distinguished road
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!
Reply With Quote
Sponsored Links