title: Vector not being populated when done through constructor
body: <p>i'm assuming this is going to be a really simple fix but i've been staring at this code for so long my brains turned to mush.</p>
  
  <p>For background, we've had to create a bank account program. I have a Account class and a Person class. My issue lies in the Person class. When a person gets instantiated it should automatically create an account object and push it into a vector. I also have a method that lets me add another account or delete one. </p>
  
  <p>My issue is, when in my main class, the vector is coming up as 0 when using the <code>v.size()</code> method. I'll paste my code below, i'm very new to C++ and only just really been introduced to pointers so bare that in mind.</p>
  
  <p>Person.cpp</p>
  
  <pre><code>    #include "pch.h"
      #include "Person.h"
      #include &lt;iostream&gt;
      using namespace std;
  
      Person::Person()
      {
          Account acc1;
          account.push_back(acc1);
      }
  
      void Person::newAccount() {
          Account acc1;
          account.push_back(acc1);
  
      }
  
      void Person::closeAccount(int index) {
          cout &lt;&lt; "Which account would you like to close?" &lt;&lt; endl;
          cin &gt;&gt; index;
          account.erase(account.begin() + index);
      }
  
      Person::~Person()
      {
      }
  </code></pre>
  
  <p>Person.h</p>
  
  <pre><code>    #pragma once
      #include "Account.h"
      #include &lt;vector&gt;
      using namespace std;
  
      class Person
      {
      public:
          Person();
          void newAccount();
          void closeAccount(int index);
  
          ~Person();
  
      private:
          vector &lt;Account&gt; account;
  
      };
  </code></pre>
  
  <p>Then in the main class I have:</p>
  
  <pre><code>   #include "pch.h"
     #include &lt;iostream&gt;
     #include &lt;iomanip&gt;
     #include &lt;vector&gt;
     #include "Account.h"
     #include "Person.h"
  
     using namespace std;
  
     int amount;
     int years;
     int balance;
     vector &lt;Account&gt; accounts;
  
     int main()
     {
  Person p;
  Account a;
  p.newAccount();
  cout &lt;&lt; accounts.size() &lt;&lt; endl;
  </code></pre>
  
  <p>I left out the rest of the main class as that has nothing to do with this error but will post if needed. </p>
  
  <p>Any help would be appreciated</p>