Qt Code:
vector<vector<int>> lotsOfInts; // ... size_t outerVectorSize = lotsOfInts.size(); size_t firstInnerVectorSize = lotsOfInts.begin()->size();To copy to clipboard, switch view to plain text mode
hope you can figure it out from that.
This is trivial c++ and definitely not Qt programming specific. Please consider better which forum you ask these questions in.
Bookmarks