title: How to store data in a 2D vector within class private?
body: <p>Basically I'm getting data from a txt file and putting it into a vector in one class function, then in another class function i'm retrieving that data - but i'm getting an error message when I try to build.</p>
  
  <p>In the private area of my class called 'Level' I defined a struct:</p>
  
  <pre><code>struct largeTile
  {
      int texture;
  }
  </code></pre>
  
  <p>Next in the private area of my class called 'Level' I defined a 2D vector to hold the struct objects: </p>
  
  <pre><code>vector&lt;vector&lt;largeTile&gt; &gt; vvint(int BIG_TILE_ROWS, vector&lt;largeTile&gt;(int BIG_TILE_COLUMNS));
  </code></pre>
  
  <p>Within the class that is called 'Level' I have a function that will fill the vector array with struct objects from a txt file:</p>
  
  <pre><code>for(int r = 0; r &lt; vvint.size(); r++)
  {
      for(int c = 0; c &lt; vvint.at(0).size(); c++)
      {
          fileData &gt;&gt; vvint[r][c].texture;
      }
  }
  </code></pre>
  
  <p>Though I get this build message, what am I doing wrong? I already defined the class type as 'largeTile' no?</p>
  
  <p>error: '((Level*)this)->Level::vvint' does not have a class type</p>