Qt Code:
  1. vector<vector<int>> lotsOfInts;
  2. // ...
  3. size_t outerVectorSize = lotsOfInts.size();
  4. 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.