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.43.3 ";
double a;
double b;
//formattedRead(d,"%f %f", , );
On Tuesday, 3 September 2019 at 12:55:29 UTC, lili wrote:
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.
u can read array this way too
auto darr = readln.split.map!(x
On Tuesday, 3 September 2019 at 13:21:16 UTC, a11e99z wrote:
On Tuesday, 3 September 2019 at 12:55:29 UTC, lili wrote:
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.
On Tuesday, 3 September 2019 at 12:55:29 UTC, lili wrote:
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.
https://dlang.org/library/std/stdio/readf.html
see example