When using Cin imediately after a cout, there seems to be some issues when building and using the debug terminal.
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
int num;
std::cout << "Testing: ";
std::cin >> num;
std::cout << "input was " << num << std::endl;
return 0;
}
Using the above code as a test case, one would expect the output to be:
Testing: <wait for input>
------
Testing: 12
input was 12
------
However the actual terminal input and output runs as such:
12
Testing: input was 12
Program ended with exit code: 0
Surely something is wrong here with the 8.3 update to Xcode as this worked before.