title: How to display user account only using user ID num
body: <p>Im basically making a database that stores a users account info. (Name, Phone number, ID, etc) I want to be able to display a specific persons info by entering in their ID num. </p>
  
  <p>I have a struct with basic info and an array struct that stores each person and their info. I need to be able to type in a persons ID and have it display their info.</p>
  
  <p>(I am still in first year of CS degree plz be gentle lol)</p>
  
  <pre><code>struct Account{
  
  string name;
  
  string city;
  string state;
  int ZIP;
  int phone;
  int IDNUM;
  double ACT_BAL;
  string LST_PMNT;};
  </code></pre>
  
  <p>Main fuction</p>
  
  <pre><code>const int SIZE = 20;
  Account customers[SIZE];
  const int NEW_INFO = 1, CHNG_INFO = 2, DISP = 3, EXIT = 4;
  char choice1; 
  int choice;
  int n;
  int NEWCUST;
  int results;
  do
  {   // menu display
      cout &lt;&lt; "Customer Database\n"
          &lt;&lt; "----------------------------\n"
          &lt;&lt; "1. Enter new account info\n"
          &lt;&lt; "2. Change account info\n"
          &lt;&lt; "3. Display all account info\n"
          &lt;&lt; "4. Exit\n";
      cin &gt;&gt; choice;
      //respond to user input
      switch (choice)
  
  
          case NEW_INFO:
              cout &lt;&lt; "Would you like to enter a new cusomter?\n"
                  &lt;&lt; "(Y/N)";
              cin &gt;&gt; choice1;
              if (choice1 == 'Y' || choice1 == 'y')
              {
                  cout &lt;&lt; "How many new customers?" &lt;&lt; endl;  //User eneters in new customer info without having to enter in a full array worth of customers. 
                  cin &gt;&gt; NEWCUST;
                  for (n = 0; n &lt; NEWCUST; n++)
                  {
                      cout &lt;&lt; "ID Number: ";
                      cin &gt;&gt; customers[n].IDNUM;
  
                      cout &lt;&lt; "Enter in a name: ";
                      cin &gt;&gt; customers[n].name;
  
                      cout &lt;&lt; "City: ";
                      cin &gt;&gt; customers[n].city;
  
                      cout &lt;&lt; "State: ";
                      cin &gt;&gt; customers[n].state;
  
                      cout &lt;&lt; "ZIP code: ";
                      cin &gt;&gt; customers[n].ZIP;
  
                      cout &lt;&lt; "Phone number: ";
                      cin &gt;&gt; customers[n].phone;
  
                      cout &lt;&lt; "Account Balance: ";
                      cin &gt;&gt; customers[n].ACT_BAL;
  
                      cout &lt;&lt; "Lasy payment date: ";
                      cin &gt;&gt; customers[n].LST_PMNT;
  
  
  
                  }
              }
              break;
          case CHNG_INFO: // Changes info
  
              break; // displays all info (work in progress)
          case DISP:
              cout &lt;&lt; "Enter customers ID number" &lt;&lt; endl;
              cin &gt;&gt; customers[].IDNUM;
              results = linearSearch(customers, SIZE, customers[].IDNUM);
  
              break;
  
          case EXIT:
              cout &lt;&lt; "Cosing......" &lt;&lt; endl; //exits progeam
              break;
  </code></pre>