Board index » cppbuilder » Multi-dimensional vectors?
Rory Walsh
CBuilder Developer |
Multi-dimensional vectors?2005-08-26 04:41:21 AM cppbuilder61 Hi everyone, can anyone help me out with multi-dimensional vectors, I tried the following but no joy, I get an error about a closing bracket, I can't see the problem, however I have never tried this before? std::vector < std::vector <AnsiString>>file1(100, 3); With regards multi-dimensional vectors do I resize as I would with normal 1D vector, or how do I resize the rows with a 100 for example and the column with 3? I tried to find stuff on the net but I couldn't find much that helps or provides some kind of useful explanation. Any help is much appreciated! Cheers, Rory. |