maccatalan
Registered
Hi.
I made a C++ program. It's works very well on Linux and on CodeWarrior's SIOUX-WASTE interface, but not on Darwin's console. I mean :
when I do :
cout << "Enter a key : ";
cin >> akey;
Then on Darwin the application acts as if there was written in the code :
cin >> akey;
cout << "Enter a key : ";
Of course, if I use cerr instead of cout there's no problem, but more rare : even if I make a flush the problem still exists.
I tried to change the shell, the problem continues.
And the problem is the same in both Terminal application and console (when you log as >console).
Have you got an idea ?
Thank you to help me,
Pierre.
PS: I would like to don't put any endl at the end of text output, since I'd like the user to see "Enter a key : _" (where '_' is the cursor).
I made a C++ program. It's works very well on Linux and on CodeWarrior's SIOUX-WASTE interface, but not on Darwin's console. I mean :
when I do :
cout << "Enter a key : ";
cin >> akey;
Then on Darwin the application acts as if there was written in the code :
cin >> akey;
cout << "Enter a key : ";
Of course, if I use cerr instead of cout there's no problem, but more rare : even if I make a flush the problem still exists.
I tried to change the shell, the problem continues.
And the problem is the same in both Terminal application and console (when you log as >console).
Have you got an idea ?
Thank you to help me,
Pierre.
PS: I would like to don't put any endl at the end of text output, since I'd like the user to see "Enter a key : _" (where '_' is the cursor).