title: c++ array showing an error
body: <p>Hello i am trying to create a program in which you enter your deals and after you're finished you should get a list of the deals . I want to get them displayed with an array but i keep getting an error must have a pointer to object.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  
  int main() {
      int deal;
      int date;
      int type;
      int quantity;
      int quality;
      int end;
      int find;
      for (deal = 0; deal &lt; 5000; deal++) {
          for (date = 0; date &lt; 5000; date++) {
              cout &lt;&lt; " enter the year,month,day and hour of pruchase in this format YYYY/MM/DD/HH/MM" &lt;&lt; endl;
              cin &gt;&gt; date;
              for (type = 0; type &lt; 5000; type++) {
                  cout &lt;&lt; " enter the mushroom type. 1 = манатарка, 2 = печурка, 3 = кладница 4 = пачи крак, 5 = съренла, 6 = друг вид гъба "&lt;&lt;endl;
                  cin &gt;&gt; type;
                  for (quantity = 0; quantity &lt; 5000; quantity++) {
                      cout &lt;&lt; " enter the mushroom quantity " &lt;&lt; endl;
                      cin &gt;&gt; quantity;
                      for (quality = 0; quality &lt; 5000; quality++) {
                          cout &lt;&lt; "enter the mushroom quality from 1 to 3 " &lt;&lt; endl;
                          cin &gt;&gt; quality;
                          cout &lt;&lt; "Press 1 for a new deal , press 2 to exit" &lt;&lt; endl;
                              cin &gt;&gt; end;
                          if (end = 2)
                          {
                              deal[date];
                              goto stop;
                          }
                      }
                  }
              }
          }
      }
  stop:
      for (find = 0; find &lt; 5000; find++) {
          int find = 0;
          cout &lt;&lt; date[find] &lt;&lt; ", " &lt;&lt; type[find] &lt;&lt; ", " &lt;&lt; quantity[find] &lt;&lt; ", " &lt;&lt; quality[find];
          //error must have a pointer to object
      }
  
  }
  </code></pre>