can I start the code from a certain line in C++? : <p>Basically I want the code to go back and start again from a certain line after it's done something.
For example, I have a menu where you can choose an action and if everything is finished in that action I want it to display the menu again.</p>

<p>Here's some rough code to illustrate.</p>

<pre><code>    int option;

cout &lt;&lt; "1";
cout &lt;&lt; "2";
cout &lt;&lt; "3";

cout &lt;&lt; "What option do you choose?";
cin &gt;&gt; option;

if (option = 1) {
    //do something here 
    //if finished start again with the menu options
} else if (option = 2) {
    //do something here 
    //if finished start again with the menu options
} else {
    //do something here 
    //if finished start again with the menu options
}
</code></pre>
