How stdin.readf ignore space char?
a11e99z
black80 at bk.ru
Tue Sep 3 13:32:34 UTC 2019
On Tuesday, 3 September 2019 at 13:25:30 UTC, lili wrote:
> On Tuesday, 3 September 2019 at 13:21:16 UTC, a11e99z wrote:
>> On Tuesday, 3 September 2019 at 12:55:29 UTC, lili wrote:
>
> string d = "3.4 3.3 ";
> double a;
> double b;
>
> //formattedRead(d,"%f %f", &a, &b);
>
> d.readf!" %s %s"(a,b);//hug
> writeln(a,b);
and this too
> string ds = "1.1 2.2 3.3";
> double[] darr;
> ds.formattedRead!"%( %s%)"( darr );
> darr.writeln;
More information about the Digitalmars-d-learn
mailing list