title: Breaking Out Of Nested Loop C++
body: <p>I've got a nested loop construct like this:</p>
  
  <pre><code>for(int i =0; i&lt;3; i++ ){
      for(int j=0; j&lt;4; j++)
      {
          if( ar[i][j]==0){
              flag=true; continue;        
          }else{
              flag=false; break;
          }       
      }
  </code></pre>
  
  <p>Now how can I break out of both loops. I've looked at similar questions,but  the answers were available in java i want i c++.</p>