I'm reading in from a file, I have a main vector of class objects that is a vector of vectors 2D in array terminology I guess you'd say. So it has to use a second vector to fill it with rows.
Trouble I'm having is this, I have a series of loops in my program that use myObj.size() as their parameter to stop (ie a for loop), well that only works if I have a grid of data read in that's say 3x3 or even 4x4 as long as there are as many rows as columns. But if I have a 2x3, or a 4x2, I'll either be missing data out of the loop, or I'll get an out of bounds error. How do I get the size of myObj if it's passed into a function that loops through it, for one of it's rows (number of columns)? Because myObj.size() will return it's row count only. Keep in mind I am only passing in myObj, not fillObj. fillObj is actually cleared at the end of the loop that fills it with data, so it wouldn't work to begin with. Thanks!!!!