title: Is it possible to have a while loop in c++ that makes the check in the middle of the loop instead of the beginning or end?
body: <p>I want to have a while loop do something like the following, but is this possible in c++? If so, how does the syntax go?</p>
  
  <p><pre><code>
  do {
      //some code
      while( expression to be evaluated );
      // some more code
  }
  </pre></code></p>
  
  <p>I would want the loop to be exited as soon as the while statement decides the expression is no longer true( i.e. if expression is false, //some more code is not executed)</p>