you have to first overload the operator [] for row. if you dont know how to do that then do vector<row> rrr(2). then you can treat it like a normal array
Aramil of Elixia - I know how to overload the operator [] but what should be
in "the body"?
Anyway - I can't understand what do you mean when you say: "do vector<row> rrr(2)" <--- Where?
Please write the full main with the vector <> ..... thanks!
yes its a row object. he declared it with type row. so you have to overload the [] operator which i dont know how to do and @ blabla just #include <vector> then @ line 24 replace whats there with the vector code
line 12 your constructor needs to have {} and not the ;. i could be wrong but i think you have to overload the = operator before doing lines 28 and 27 do instead do the data members
now your getting nit picky. i wrote that because you said rrr is a standard array not a row object. and actually no. it is a row object that holds two rows. like int array[2] is an int array that holds 2 ints. its type is still int object