title: Which function should I use so that it works just like GOTO statement?
body: <p>I am learning c++ and I have this question.</p>
  
  <p>I have a file01.cpp with loops and if else statement.</p>
  
  <p>e.g.</p>
  
  <p>File01.cpp has</p>
  
  <pre><code>If(x&lt;0)
  cout&lt;&lt;x&lt;&lt;endl;
  else
  GOTO file02.cpp line number 29;
  </code></pre>
  
  <p>This the the rough idea what I want to do. I don't know how can I do this, I preferrably don't want to use GOTO statement.</p>