title: Can I use std::vector<std::vector<T>> to represent two dimensional arrays in C++?
body: <p>I recently learned how to do two- and three-dimensional arrays in plain C using pointers, however being a C++ enthusiast, I'd also like to figure out how to do multi-dimensional arrays in C++.</p>
  
  <p>I know that the preferred way of doing one-dimensional arrays in C++ is to use <code>std::vector&lt;T&gt;</code>, but what about two- and three-dimensional arrays? Would they be represented as <code>std::vector&lt;std::vector&lt;T&gt;&gt;</code> and <code>std::vector&lt;std::vector&lt;std::vector&lt;T&gt;&gt;&gt;</code>?</p>