title: array type 'int [8]' is not assignable
body: <p>Been stuck on this for a very long time and cant work out a solution, keep getting error message  array type 'int [8]' is not assignable. Also it is tellig me that the array entries 'expresssion must be a modifiable lvalue' I've tried to look up multiple times and just can't seem to think of anything, any help is useful thanks :)
      using namespace std;</p>
  
  <pre><code>const int MAXACCOUNTS = 8;
  
  
  int main()
  
  {
  cout &lt;&lt; "Welcome" &lt;&lt; endl;
  int counter = 0;
  int counter1 = 0;
  int interest_counter = 0;
  
  struct Account
  {
      int AccountNumber[MAXACCOUNTS] ;
      double Balance[MAXACCOUNTS];
      int DaySinceDebited[MAXACCOUNTS];
  };
  
  Account entries[MAXACCOUNTS];
  
  while (counter1 != MAXACCOUNTS)
  {
      if (counter1 = 0)
      {
          entries[counter1].AccountNumber = 1001;
          entries[counter1].Balance = 4254.40;
          entries[counter1].DaySinceDebited = 20;
          counter += 1;
      }
      else if (counter1 = 1)
      {
          entries[counter1].AccountNumber = 7940;
          entries[counter1].Balance = 27006.25;
          entries[counter1].DaySinceDebited = 35;
          counter += 1;
      }
      else if (counter1 = 2)
      {
          entries[counter1].AccountNumber = 4382;
          entries[counter1].Balance = 123.50;
          entries[counter1].DaySinceDebited = 2;
          counter += 1;
      }
      else if (counter1 = 3)
      {
          entries[counter1].AccountNumber = 2651;
          entries[counter1].Balance = 85326.92;
          entries[counter1].DaySinceDebited = 14;
          counter += 1;
      }
      else if (counter1 = 4)
      {
          entries[counter1].AccountNumber = 3020;
          entries[counter1].Balance = 657.00;
          entries[counter1].DaySinceDebited = 5;
          counter += 1;
      }
      else if (counter1 = 5)
      {
          entries[counter1].AccountNumber = 7168;
          entries[counter1].Balance = 7423.34;
          entries[counter1].DaySinceDebited = 360;
          counter += 1;
      }
      else if (counter1 = 6)
      {
          entries[counter1].AccountNumber = 6245;
          entries[counter1].Balance = 4.99;
          entries[counter1].DaySinceDebited = 1;
          counter += 1;
      }
      else if (counter1 = 7)
      {
          entries[counter1].AccountNumber = 9342;
          entries[counter1].Balance = 107864.44;
          entries[counter1].DaySinceDebited = 45;
          counter += 1;
      }
  
  }
  
  cout &lt;&lt; "Acct No   Balance   Interest Paid" &lt;&lt; endl; 
  
  while (counter != MAXACCOUNTS)
  {
      cout &lt;&lt; entries[counter].AccountNumber &lt;&lt; "   " &lt;&lt; entries[counter].Balance &lt;&lt; "  " &lt;&lt; entries[counter].DaySinceDebited &lt;&lt; endl;
      counter += 1; 
  }
  return 0;
  }
  </code></pre>