title: Xcode 10 C++ bug (can't input in console without output first)
body: <p>Recently I updated to Xcode 10 Now I make C++ project usually with macos command line tool and found this bug. Now when I build and run without output first the console doesnt appear and hangs. If I ouput first then console comes and then you can input according to your program.</p>
  
  <p>Without printing output first console hangs and no input can be done:</p>
  
  <p><a href="https://i.stack.imgur.com/NJ61G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NJ61G.png" alt="enter image description here"></a>
  Console appears after output first in program:</p>
  
  <p>EDITED : Getting this problem again with Xcode 10.1 (10B61) </p>
  
  <p><a href="https://i.stack.imgur.com/9EQGH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9EQGH.png" alt="enter image description here"></a></p>