title: How to check if the user had input nothing strings?
body: <p>How I'm I going to add another condition in case the user didn't put anything in both username and password? ( "Empty Username and/or Password - Username and Password required!. Try Again? (Y/N)" )</p>
  
  <p>here's my. code.</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;;
  #include &lt;string&gt;;
  using namespace std;
  string username;
  string password;
  string choice;
  
  int main(int argc, const char * argv[])
  {
  do {
  
  Username:
  std::cout &lt;&lt; "Enter Username: ";
  std::cin &gt;&gt; username;
  
  if (username != "Joven")
  {
  std::cout &lt;&lt; "Invalid Username. Please try again.\n\n\n";
  goto choice;
  goto Username;
  
  }
  Password:
  std::cout &lt;&lt; "Enter Password: ";
  std::cin &gt;&gt; password;
  
  if (password != "Fabricante7188")
  {
  std::cout &lt;&lt; "Invalid Password. Please try again.\n\n\n";
  std::cout &lt;&lt; "Do you want to try again? y/n \n\n";
  cin &gt;&gt; choice;
  goto Password;
  }
  else
  {
  std::cout &lt;&lt; "Correct Username and Password - Log In Successfull.\n";
  break;
  
  choice:
  std::cout &lt;&lt; "Do you want to try again? y/n \n\n";
  std::cin &gt;&gt; choice;
  
  }
  }while (choice != "y" &amp;&amp; choice != "n");
  
  if (choice != "y" &amp;&amp; choice != "n")
  {
  cout &lt;&lt; "Invalid choice.\n";
  goto choice;
  }
  system("pause");
  return 0;
  }`
  </code></pre>
  
  <p>thanks a lot!</p>