title: C++: break the main loop
body: <p>I am preparing some code:</p>
  
  <pre><code>for(int a = 1; a &lt;= 100; a++)    //loop a (main loop)
  {
      for(int b = 1000; b &lt;= 2000; b++)    //loop b
      {
         if(b == 1555)
            break;
      }
  
      for(int c = 2001; c &lt;= 3000; c++)    //loop c
      {
         .
         .
         .
      }
  }
  </code></pre>
  
  <p>I want to break the main loop (loop variable <code>int a</code>) by using a <code>break;</code> statement in the b loop (loop variable <code>int b</code>).</p>
  
  <p>How can I do it?</p>