i've tried both adding "\n" and fflush(stdout) but it does not work in
safari - input dialog is shown before printf show anything
четверг, 23 октября 2014 г., 0:12:08 UTC+6 пользователь Anton Smirnov
написал:
>
> Hi.
>
> I was really impressed by emscripten when i got input dialog for cin >>
> operator!
> The only issue i've noted is that input dialog is shown before output is
> done.
>
> For example for the source code:
> #include <iostream>
>
> using namespace std;
>
> int main() {
> char name[128];
> cout << "type your name: ";
> cin.getline(name, sizeof(name));
> cout << "hi, " << name << endl;
>
> return 0;
> }
>
>
> input dialog is shown before "type your name" is printed.
>
> Is it bug or feature?
>
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.