title: Object not calling the value
body: <p>I am using the following code the object that I created in the following function does not call the values that I created in the main </p>
  
  <pre><code>void LoginScreen(){
  
  UserInfo addUser[100];
  
  string EUN, EP;
  system("cls");
  cout&lt;&lt;"Enter Username : ";
  cin&gt;&gt;EUN;
  cout&lt;&lt;endl;
  //cout&lt;&lt;"Enter Password : ";
  //cin&gt;&gt;EP
  
  
  for( int a = 0; a &lt; 100; a++){
      if (EUN == addUser[a].getUN()){
          system("cls");
          cout&lt;&lt;"OMG HELP MEEE ";
          //break;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>my UserInfo.cpp </p>
  
  <pre><code> void UserInfo::setUN(string un){
  
      UserName = un;
  }
  
  
  string UserInfo::getUN(){
  
      return UserName;
  }
  </code></pre>
  
  <p>my main</p>
  
  <pre><code>    void main()
  {
  
  
  
      string tFname, tLname, tNumber;
      string tUN, tP;
  
  
  
      UserInfo addUser[100];
  
  
  
      cout&lt;&lt;"Enter Username : ";
      getline(cin,tUN);
      addUser[0].setUN(tUN);
  
  
      cout&lt;&lt;"Press 1 for tails"&lt;&lt;endl;
      cout&lt;&lt;"Press 2 for Login"&lt;&lt;endl;
      cout&lt;&lt;"Enter Your Choice";
      cin&gt;&gt;main_menu;
  
      switch (main_menu){
      case 1:
          break;
      case 2:
          LoginScreen();
          break;
  
      default:
          break;
  
      }
  
      getch();
  
  
  
  }
  </code></pre>
  
  <p>I am not sure why its not giving the value in the loginScreen, but when I try to print the values in my main it works fine. </p>