XCode 4 console won't take user input
问题 In XCode 4, when I run something like this: string input; cout << "Enter command" << endl; getline(cin, input); cout << "You entered: " << input << endl; I see my "Enter command" prompt in the console. But when I place my mouse cursor below it and start typing the cursor doesn't move, and my keystrokes don't show up. It basically behaves like a read-only text box. What am I doing wrong? How can I interact with my program as if it were running in the terminal? 回答1: Are you pressing Return or