title: C++ only allowing one input
body: <p>When I run this code I enter one name and then it prints the rest of the <code>cout</code> statements. It does not allow me to enter anything else other than one input when I have multiple inputs. How can this error be fixed?</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  using namespace std;
  
  struct info {
      char Firstname;
      char Lastname;
  };
  
  int main()
  {
      int month;
      int date;
      info person1, person2, person3, person4, person5;
      cout &lt;&lt; "Enter the First Name of 1 friend." &lt;&lt; endl;
      cin &gt;&gt; person1.Firstname;
      cout &lt;&lt; "Now enter their last name." &lt;&lt; endl;
      cin &gt;&gt; person1.Lastname;
      cout &lt;&lt; "Enter the number of the month the person was born in: " &lt;&lt; endl;
      cin &gt;&gt; month;
      cout &lt;&lt; "Now Enter your birth date:" &lt;&lt; endl;
      cin &gt;&gt; date;
      if ((month == 1 &amp;&amp; date &gt;= 20) || (month == 2 &amp;&amp; date &lt;= 18))
      {
          cout &lt;&lt; " Your zodiac sign is AQUARIUS\n";
  
      }
      else if ((month == 2 &amp;&amp; date &gt;= 19) || (month == 3 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is PISCES\n";
      }
      else if ((month == 3 &amp;&amp; date &gt;= 21) || (month == 4 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is ARIES\n";
      }
      else if ((month == 4 &amp;&amp; date &gt;= 20) || (month == 5 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is TAURUS\n";
      }
      else if ((month == 5 &amp;&amp; date &gt;= 21) || (month == 6 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is GEMINI\n";
      }
      else if ((month == 6 &amp;&amp; date &gt;= 21) || (month == 7 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is CANCER\n";
      }
      else if ((month == 7 &amp;&amp; date &lt;= 23) || (month == 8 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LEO\n";
      }
      else if ((month == 8 &amp;&amp; date &gt;= 23) || (month == 9 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is VIRGO\n";
      }
      else if ((month == 9 &amp;&amp; date &gt;= 23) || (month == 10 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LIBRA\n";
      }
      else if ((month == 10 &amp;&amp; date &gt;= 23) || (month == 11 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SCORPIO\n";
      }
      else if ((month == 11 &amp;&amp; date &gt;= 22) || (month == 12 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SAGUITTARIUS\n";
      }
      else if ((month == 12 &amp;&amp; date &gt;= 22) || (month == 1 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is CAPRICORN\n";
      }
      else
      {
          cout &lt;&lt; " INVALID INPUT";
      }
  
      cout &lt;&lt; "Enter the First Name of 1 friend." &lt;&lt; endl;
      cin &gt;&gt; person2.Firstname;
      cout &lt;&lt; "Now enter their last name." &lt;&lt; endl;
      cin &gt;&gt; person2.Lastname;
      cout &lt;&lt; "Enter the number of the month the person was born in: " &lt;&lt; endl;
      cin &gt;&gt; month;
      cout &lt;&lt; "Now Enter your birth date:" &lt;&lt; endl;
      cin &gt;&gt; date;
      if ((month == 1 &amp;&amp; date &gt;= 20) || (month == 2 &amp;&amp; date &lt;= 18))
      {
          cout &lt;&lt; " Your zodiac sign is AQUARIUS\n";
  
      }
      else if ((month == 2 &amp;&amp; date &gt;= 19) || (month == 3 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is PISCES\n";
      }
      else if ((month == 3 &amp;&amp; date &gt;= 21) || (month == 4 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is ARIES\n";
      }
      else if ((month == 4 &amp;&amp; date &gt;= 20) || (month == 5 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is TAURUS\n";
      }
      else if ((month == 5 &amp;&amp; date &gt;= 21) || (month == 6 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is GEMINI\n";
      }
      else if ((month == 6 &amp;&amp; date &gt;= 21) || (month == 7 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is CANCER\n";
      }
      else if ((month == 7 &amp;&amp; date &lt;= 23) || (month == 8 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LEO\n";
      }
      else if ((month == 8 &amp;&amp; date &gt;= 23) || (month == 9 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is VIRGO\n";
      }
      else if ((month == 9 &amp;&amp; date &gt;= 23) || (month == 10 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LIBRA\n";
      }
      else if ((month == 10 &amp;&amp; date &gt;= 23) || (month == 11 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SCORPIO\n";
      }
      else if ((month == 11 &amp;&amp; date &gt;= 22) || (month == 12 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SAGUITTARIUS\n";
      }
      else if ((month == 12 &amp;&amp; date &gt;= 22) || (month == 1 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is CAPRICORN\n";
      }
      else
      {
          cout &lt;&lt; " INVALID INPUT";
      }
  
      cout &lt;&lt; "Enter the First Name of 1 friend." &lt;&lt; endl;
      cin &gt;&gt; person3.Firstname;
      cout &lt;&lt; "Now enter their last name." &lt;&lt; endl;
      cin &gt;&gt; person3.Lastname;
      cout &lt;&lt; "Enter the number of the month the person was born in: " &lt;&lt; endl;
      cin &gt;&gt; month;
      cout &lt;&lt; "Now Enter your birth date:" &lt;&lt; endl;
      cin &gt;&gt; date;
  
      if ((month == 1 &amp;&amp; date &gt;= 20) || (month == 2 &amp;&amp; date &lt;= 18))
      {
          cout &lt;&lt; " Your zodiac sign is AQUARIUS\n";
  
      }
      else if ((month == 2 &amp;&amp; date &gt;= 19) || (month == 3 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is PISCES\n";
      }
      else if ((month == 3 &amp;&amp; date &gt;= 21) || (month == 4 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is ARIES\n";
      }
      else if ((month == 4 &amp;&amp; date &gt;= 20) || (month == 5 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is TAURUS\n";
      }
      else if ((month == 5 &amp;&amp; date &gt;= 21) || (month == 6 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is GEMINI\n";
      }
      else if ((month == 6 &amp;&amp; date &gt;= 21) || (month == 7 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is CANCER\n";
      }
      else if ((month == 7 &amp;&amp; date &lt;= 23) || (month == 8 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LEO\n";
      }
      else if ((month == 8 &amp;&amp; date &gt;= 23) || (month == 9 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is VIRGO\n";
      }
      else if ((month == 9 &amp;&amp; date &gt;= 23) || (month == 10 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LIBRA\n";
      }
      else if ((month == 10 &amp;&amp; date &gt;= 23) || (month == 11 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SCORPIO\n";
      }
      else if ((month == 11 &amp;&amp; date &gt;= 22) || (month == 12 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SAGUITTARIUS\n";
      }
      else if ((month == 12 &amp;&amp; date &gt;= 22) || (month == 1 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is CAPRICORN\n";
      }
      else
      {
          cout &lt;&lt; " INVALID INPUT";
      }
      cout &lt;&lt; "Enter the First Name of 1 friend." &lt;&lt; endl;
      cin &gt;&gt; person4.Firstname;
      cout &lt;&lt; "Now enter their last name." &lt;&lt; endl;
      cin &gt;&gt; person4.Lastname;
      cout &lt;&lt; "Enter the number of the month the person was born in: " &lt;&lt; endl;
      cin &gt;&gt; month;
      cout &lt;&lt; "Now Enter your birth date:" &lt;&lt; endl;
      cin &gt;&gt; date;
      if ((month == 1 &amp;&amp; date &gt;= 20) || (month == 2 &amp;&amp; date &lt;= 18))
      {
          cout &lt;&lt; " Your zodiac sign is AQUARIUS\n";
  
      }
      else if ((month == 2 &amp;&amp; date &gt;= 19) || (month == 3 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is PISCES\n";
      }
      else if ((month == 3 &amp;&amp; date &gt;= 21) || (month == 4 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is ARIES\n";
      }
      else if ((month == 4 &amp;&amp; date &gt;= 20) || (month == 5 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is TAURUS\n";
      }
      else if ((month == 5 &amp;&amp; date &gt;= 21) || (month == 6 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is GEMINI\n";
      }
      else if ((month == 6 &amp;&amp; date &gt;= 21) || (month == 7 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is CANCER\n";
      }
      else if ((month == 7 &amp;&amp; date &lt;= 23) || (month == 8 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LEO\n";
      }
      else if ((month == 8 &amp;&amp; date &gt;= 23) || (month == 9 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is VIRGO\n";
      }
      else if ((month == 9 &amp;&amp; date &gt;= 23) || (month == 10 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LIBRA\n";
      }
      else if ((month == 10 &amp;&amp; date &gt;= 23) || (month == 11 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SCORPIO\n";
      }
      else if ((month == 11 &amp;&amp; date &gt;= 22) || (month == 12 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SAGUITTARIUS\n";
      }
      else if ((month == 12 &amp;&amp; date &gt;= 22) || (month == 1 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is CAPRICORN\n";
      }
      else
      {
          cout &lt;&lt; " INVALID INPUT";
      }
  
      cout &lt;&lt; "Enter the First Name of 1 friend." &lt;&lt; endl;
      cin &gt;&gt; person5.Firstname;
      cout &lt;&lt; "Now enter their last name." &lt;&lt; endl;
      cin &gt;&gt; person5.Lastname;
      cout &lt;&lt; "Enter the number of the month the person was born in: " &lt;&lt; endl;
      cin &gt;&gt; month;
      cout &lt;&lt; "Now Enter your birth date:" &lt;&lt; endl;
      cin &gt;&gt; date;
      if ((month == 1 &amp;&amp; date &gt;= 20) || (month == 2 &amp;&amp; date &lt;= 18))
      {
          cout &lt;&lt; " Your zodiac sign is AQUARIUS\n";
  
      }
      else if ((month == 2 &amp;&amp; date &gt;= 19) || (month == 3 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is PISCES\n";
      }
      else if ((month == 3 &amp;&amp; date &gt;= 21) || (month == 4 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is ARIES\n";
      }
      else if ((month == 4 &amp;&amp; date &gt;= 20) || (month == 5 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is TAURUS\n";
      }
      else if ((month == 5 &amp;&amp; date &gt;= 21) || (month == 6 &amp;&amp; date &lt;= 20))
      {
          cout &lt;&lt; " Your zodiac sign is GEMINI\n";
      }
      else if ((month == 6 &amp;&amp; date &gt;= 21) || (month == 7 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is CANCER\n";
      }
      else if ((month == 7 &amp;&amp; date &lt;= 23) || (month == 8 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LEO\n";
      }
      else if ((month == 8 &amp;&amp; date &gt;= 23) || (month == 9 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is VIRGO\n";
      }
      else if ((month == 9 &amp;&amp; date &gt;= 23) || (month == 10 &amp;&amp; date &lt;= 22))
      {
          cout &lt;&lt; " Your zodiac sign is LIBRA\n";
      }
      else if ((month == 10 &amp;&amp; date &gt;= 23) || (month == 11 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SCORPIO\n";
      }
      else if ((month == 11 &amp;&amp; date &gt;= 22) || (month == 12 &amp;&amp; date &lt;= 21))
      {
          cout &lt;&lt; " Your zodiac sign is SAGUITTARIUS\n";
      }
      else if ((month == 12 &amp;&amp; date &gt;= 22) || (month == 1 &amp;&amp; date &lt;= 19))
      {
          cout &lt;&lt; " Your zodiac sign is CAPRICORN\n";
      }
      else
      {
          cout &lt;&lt; " INVALID INPUT";
      }
      return 0;
  }
  </code></pre>