I want to load the information from a file into a vector of a class type Voter.
The file is basically a matrix though (ie. 3 columns) so not sure how to go about this?
Any help would be much appreciated!
So far I have the following, but this only pulls in the first column
How is the Voter class defined? How is the Voter::operator>>( ... ) defined? That would determine how your code would work, you could use an overload like such