Xcode not letting me submit input

Xcode will not display until after I enter a number. Tried code with friends Xcode and it worked properly.

Xcode 8.3 MacOS Sierra Version 10.12.13

I added a screenshot. The problem is that my program does not run until after I enter a number. I can post my code also if you'd like.

I am coding in C++. Below is a sample of my code. The issue is that the output does not display until after I enter something. The code should ask the user to enter the length of a rectangle. The code will not display anything until after I enter a number. I believe this is an issue with my Xcode and not my code because I sent it to a friend and it ran perfectly on their computer (using Xcode as well).

double getLength() {

double length;

cout << "Please enter the rectangle's length: ";

cin >> length;

return length;

}

This sounds very similar to the issue described on this thread.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Xcode not letting me submit input
 
 
Q