title: Storing data within a map of a vector of structs of a vector of structs
body: <p>First post here, and I'm working on some code to try to read from multiples CSV files, combine them into a "Master" CSV file. (CODING in: C++ Visual Studio 2013 by the way)</p>
  
  <p>Anyways, that's not the trouble I'm having. I'm having difficulty with setting up my initial container I would like to store these values into. Here's my set-up so far:</p>
  
  <pre><code>#include &lt;vector&gt;
  #include &lt;map&gt;
  using namespace std;
      struct GradeCategories{
          string category;
          int grade;
      }; GradeCategories grade_cat;
  
      struct NameGrades{
          string name;
          vector&lt;GradeCategories&gt; v;
      }; NameGrades NG;
  
      typedef map&lt;int, vector&lt;NameGrades&gt;&gt; TheBook;
  </code></pre>
  
  <p>So how would I go about even accessing/inputting data into this set up?</p>
  
  <p>I attempted:</p>
  
  <p><code>TheBook[12345017][NG.name = "Bob Jones"].push_back((grade_cat.category = "Exam 1")(grade_cat.grade = 95));</code></p>
  
  <p>Other than that, I don't really see how I would access the internal components of this. Extremely new to maps, and this deep of an "inception" of code is kind of throwing me.</p>
  
  <p>So any help with that would be very appreciated! Thanks :)</p>