title: C++ How do i display the input like a receipt after the user has typed them
body: <p>Hi im creating a cinema ticket operator as a self short project but i am a bit stuck on how to make the results of what the user inputs show up at the end summed up like on a receipt. Thanks in advance.</p>
  
  <p>This is my code :</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int selectStaff();
  int selectDate();
  int selectMovie();
  int printReceipt(int a);
  string name, date;
  
  int main()
  {
  int movie;
  
  selectStaff();
  date = selectDate();
  movie = selectMovie();
  printReceipt(movie);
  
  return 0;
  }
  int printReceipt(int a) 
  {
  if (a == 1) {
  cout &lt;&lt; "Deadpool" &lt;&lt; endl;
  }
  else {
  cout &lt;&lt; "Goosebumps" &lt;&lt; endl;
  }
  
  return 0;
  }
  
  int selectStaff() {
  cout &lt;&lt; "Welcome to FILM Screen Cinema" &lt;&lt; endl;
  cout &lt;&lt; endl;
  cout &lt;&lt; "ENTER STAFF/OPERATOR'S NAME: " &lt;&lt; endl;
  cin &gt;&gt; name;
  
  return 0;
  }
  
  int selectDate() {
  cout &lt;&lt; endl;
  cout &lt;&lt; "ENTER DATE:";
  cin &gt;&gt; date;
  
  return 0;
  }
  
  int selectMovie() {
  int movie;
  
  cout &lt;&lt; endl;
  cout &lt;&lt; "CHOOSE A MOVIE THAT IS SCREENING TODAY:" &lt;&lt; endl;
  cout &lt;&lt; endl;
  cout &lt;&lt; "Press 1 for first option &amp; 2 for second option" &lt;&lt; endl;
  cout &lt;&lt; endl;
  cout &lt;&lt; "[1] Deadpool" &lt;&lt; endl &lt;&lt; "[2] Goosebumps" &lt;&lt; endl;
  cin &gt;&gt; movie;
  
  return 0;
  }
  </code></pre>
  
  <p>I want all the required input to be displayed at the bottom so when it prints, the user can view the summary. I also need a closing message that says "thank you"</p>