Hi guys:

input is two line, first line is a number n and second line is n float point number,
    e.g. 3
         1.1 2.2 3.3
how use stdin.readf get all number. i code below but not work well.

        int n;
        stdin.readf!"%d\n"(n);
        writeln("read n:",n);

        foreach (i; 0..n)
        {
                double x;
stdin.readf!"%f"(x); //only return first number, why?
                writeln(x);
        }

Reply via email to