title: c++ error, "could not deduce argument for 'std..."
body: <p>i keep getting the same errors on my program, any help would be greatly appreciated.</p>
  
  <blockquote>
    <p>Error 1   error C2784: 'std::basic_istream&lt;_Elem,_Traits>
    &amp;std::getline(std::basic_istream&lt;_Elem,_Traits>
    &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc> &amp;)' : could not deduce
    template argument for 'std::basic_string&lt;_Elem,_Traits,_Alloc> &amp;' from
    'char'    c:\Users\esmier\Documents\Visual Studio 2008\Projects\Chapter 4
    lab\Chapter 4 lab\source.cpp  40  Chapter 4 lab</p>
    
    <p>Error 2   error C2780: 'std::basic_istream&lt;_Elem,_Traits>
    &amp;std::getline(std::basic_istream&lt;_Elem,_Traits>
    &amp;,std::basic_string&lt;_Elem,_Traits,_Alloc> &amp;,const _Elem)' : expects 3
    arguments - 2 provided    c:\Users\esmier\Documents\Visual Studio
    2008\Projects\Chapter 4 lab\Chapter 4 lab\source.cpp  40  Chapter 4 lab</p>
  </blockquote>
  
  <p>there errors also happen in the section commented as case b</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include&lt;sstream&gt;
  int main()
  {
  double hours;
  double Package_A_price=9.95, Package_A_hours=10, Package_A_additional=2.00,Package_A_total;
  double Package_B_price=14.95, Package_B_hours=20, Package_B_additional=1.00,Package_B_total;
  double Package_C_price=19.95;
  char package_choice, additional_hours[3];
  
  //table output
  
  cout&lt;&lt;"Please choose your package below";
  
  cout&lt;&lt;"Package A:\t"&lt;&lt;"For $9.95 per month 10 hours of service are provided.\n";
  cout&lt;&lt;"\t\tAdditional hours are $2.00 per hour\n\n";
  
  cout&lt;&lt;"Package B:\t"&lt;&lt;"For $14.95 per month 20 hours of service are provided.\n";
  cout&lt;&lt;"\t\tAdditional hours are $1.00 per hour\n\n";
  
  cout&lt;&lt;"Package A:\t"&lt;&lt;"For $19.95 per month unlimited access is provided.\n\n\n";
  
  cout&lt;&lt;"What is your package letter?\n";
  cin&gt;&gt;package_choice;
  while (package_choice!='A'||'a'||'B'||'b'||'C'||'c')
  {
      cout&lt;&lt;"You entered an incorrect option.\n";
      cout&lt;&lt;"please reenter your choice.\n\n";
  }
  switch (package_choice)
  {
  //package A choice
  case 'A||a':
      cout&lt;&lt;"Did you have any additional hours?\n";
      getline(cin, additional_hours);
      if (additional_hours == 'yes')
      {
          cout&lt;&lt;"How many hours did you have?\n";
          cin&gt;&gt;hours;
          while (hours &gt;744)
          {
              cout&lt;&lt;"You can not have over 744 hours per month!\n";
              cout&lt;&lt;"Time is a linear constant, Please renter your amount.\n";
          }
          Package_A_total=9.95+(2.00*hours);
          cout&lt;&lt;"Your Total for Package A is $"&lt;&lt;Package_A_total;
          break;
      }
  //package B choice
  case 'B||b':
      cout&lt;&lt;"Did you have any additional hours?\n";
      getline(cin, additional_hours);
      if (additional_hours == 'yes')
      {
          cout&lt;&lt;"How many hours did you have?\n";
          cin&gt;&gt;hours;
          while (hours &gt;744)
          {
              cout&lt;&lt;"You can not have over 744 hours per month!\n";
              cout&lt;&lt;"Time is a linear constant, Please renter your amount.\n";
          }
          Package_B_total=14.95+(1.00*hours);
          cout&lt;&lt;"Your Total for Package B is $"&lt;&lt;Package_B_total;
          break;
      }
  //package C choice
  case 'C||c':
      cout&lt;&lt;"Your Total for Package C is $"&lt;&lt;Package_B_price;
      break;
  
  default: cout&lt;&lt;"You did not Enter A B or C.\n";
           cout&lt;&lt;"Please reenter your choice.";
  }
  
  
  
  system ("pause");
      return 0;
  </code></pre>
  
  <p>}</p>