The difference in string and char[], readf() and scanf()
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 21 06:25:32 PDT 2015
On Saturday, 21 March 2015 at 12:08:05 UTC, anonymous wrote:
> Please go into more detail about how it doesn't work.
Task:
http://codeforces.com/contest/527/problem/B?locale=en
It works:
char[200010] s, t;
s = readln.strip;
t = readln.strip;
http://codeforces.com/contest/527/submission/10377392?locale=en
It doesn't always work:
char[200010] s, t;
scanf("%s%s", s.ptr, t.ptr);
http://codeforces.com/contest/527/submission/10376852?locale=en
P.S. I can't copy test №23 completely.
More information about the Digitalmars-d-learn
mailing list