title: compiler is giving me an error: no match for 'operator*'
body: <p>I am a newbie student taking cse 100 any help understanding this topic is appreciated.
  It was compiling fine but when run it was prompting user only once, after several changes the teacher suggested now the program doesn't compile. It gives me following errors.</p>
  
  <pre><code>main.cpp|30|error: no match for 'operator*' (operand types are 'const double' and 'std::string {aka std::basic_string&lt;char&gt;}')|
  
  main.cpp|33|error: no match for 'operator*' (operand types are 'const double' and 'std::string {aka std::basic_string&lt;char&gt;}')| 
  
  main.cpp|36|error: no match for 'operator+' (operand types are 'std::string {aka std::basic_string&lt;char&gt;}' and 'double')|
  </code></pre>
  
  <p>Attempted code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      const double adultTicket = 9.50; //declared const double with value of
      //$9.50price per adult ticket.
      const double childTicket = 6.50; //declared const double with value
      //of $6.050 per child ticket.
  
      cout &lt;&lt; "Please enter movie name \n"; //User prompt to enter movie name.
      string movName;
      getline(cin,movName); //Declared variable told name entered by user.
  
      cout &lt;&lt; "Please enter number of Adult tickets sold \n"; //User prompt to
      //enter amounnt of adult tickets sold.
      string adultTicketsSold;
      getline(cin, adultTicketsSold); //Declared variable that holds number of
      //adult tickets sold.
  
      cout &lt;&lt; "Please enter number of children tickets sold \n"; //User prompt
      //to enter number of children tickets sold.
      string childTicketsSold;
      getline(cin,childTicketsSold); // Declared variable to hold number of
      //child tickets sold.
  
      string grossAdult;
      grossAdult = adultTicket*adultTicketsSold;
  
      double grossChild;
      grossChild = childTicket*childTicketsSold;
  
      double grossBox;
      grossBox = grossAdult+grossChild;
  
      double distributorTake;
      distributorTake = grossBox*0.80;
  
      double netBox;
      netBox = grossBox*0.20;
  
      cout &lt;&lt; "Revenue Report" &lt;&lt;endl;
      cout &lt;&lt; "Movie name:" &lt;&lt; movName &lt;&lt;endl;
      cout &lt;&lt; "Adult Tickets Sold:" &lt;&lt; adultTicketsSold &lt;&lt;endl;
      cout &lt;&lt; "Child Tickets Sold:" &lt;&lt; childTicketsSold &lt;&lt;endl;
      cout &lt;&lt; "Gross Box Office Profit: $" &lt;&lt; grossBox &lt;&lt;endl;
      cout &lt;&lt; "Amount Paid to Distributor: $" &lt;&lt; distributorTake &lt;&lt;endl;
      cout &lt;&lt; "Net Box Office Profit: $" &lt;&lt; netBox &lt;&lt;endl;
      return 0;
  }
  </code></pre>