title: How do I combine user input with with if statements?
body: <p>I'm making a program. For the program to work, I need to know how to combine user input (cin) with if statements, for example, something like:</p>
  
  <pre><code>start:
      (program)    
      cout &lt;&lt; "What would you like to do?";
      if cin = "end" goto end;
      if cin = "redo" goto start;
  
  end:
      return 0;
  </code></pre>
  
  <p>I know this isn't valid code, but I hope you understand what I'm trying to do. I need to know how to do this in C++, if possible, and if not, how to do the same thing.</p>
  
  <p>Also, in Batch, doing something like :start: "bookmarks" the program, so that you can do a "GOTO start" command to jump back to it. How do you do that in C++?</p>