Re: standard input from console not working in Xcode 4.5
Re: standard input from console not working in Xcode 4.5
- Subject: Re: standard input from console not working in Xcode 4.5
- From: Chris Lattner <email@hidden>
- Date: Fri, 21 Sep 2012 09:44:04 -0700
On Sep 21, 2012, at 7:52 AM, email@hidden wrote:
> If I create a simple command line C++ program in Xcode 4.5 such as:
>
> #include <iostream>
> using namespace std;
> int main(int argc, const char * argv[])
> {
> int x;
> cout << "enter x: ";
> cin >> x;
> cout << x << endl;
> return 0;
> }
>
> When I go to type in a value for x in the console, only the first digit is displayed as you type it although all digits are read:
>
> If I type: 123
> You only see the 1, but x does contain 123 as the next output line shows.
>
> I've seen this on three separate machines, two with 10.8 and one with 10.7.
Yes, this is a confirmed regression from 4.4, and we're tracking it internally. It is really unfortunate that this slipped in, but we'll get it fixed ASAP.
> Yes, I'll file a radar, but does anyone know a workaround (I can run the program from the Terminal fine) as this is driving my students nuts.
I'm not sure there is any known workaround, Ken, do you know of any?
-Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden