title: C++ nested classes, access fathers variables
body: <p>The title already says a lot,</p>
  
  <p>but basically what i want to do is the following(Example):</p>
  
  <p>I have a class called A, and another class inside a called B, like so:</p>
  
  <pre><code>class A
  {
     int a;
  
     class B
     {
        void test()
        {
           a = 20;
        }
     };
  };
  </code></pre>
  
  <p>As you can see my goal is for class B to have access to class A, as it is a nested class. Not this wont work, because B doesn't have access to A, but how can it get access?</p>
  
  <p>Thank You</p>