readf error bug?

2015-05-09 Thread Dave Akers via Digitalmars-d
The following... import std.stdio; void main() { write("How many students are there? "); int studentCount; readf("%s", &studentCount); write("How many teachers are there? "); int teacherCount; readf("%s", &teacherCount); writefln("Got it: t

Re: readf error bug?

2015-05-09 Thread Dennis Ritchie via Digitalmars-d
On Saturday, 9 May 2015 at 08:30:31 UTC, Dave Akers wrote: The following... import std.stdio; void main() { write("How many students are there? "); int studentCount; readf("%s", &studentCount); write("How many teachers are there? "); int teacherCount;

Re: readf error bug?

2015-05-09 Thread Dave Akers via Digitalmars-d
On Saturday, 9 May 2015 at 08:34:42 UTC, Dennis Ritchie wrote: On Saturday, 9 May 2015 at 08:30:31 UTC, Dave Akers wrote: The following... import std.stdio; void main() { write("How many students are there? "); int studentCount; readf("%s", &studentCount); write

Re: readf error bug?

2015-05-09 Thread John Colvin via Digitalmars-d
On Saturday, 9 May 2015 at 08:41:49 UTC, Dave Akers wrote: On Saturday, 9 May 2015 at 08:34:42 UTC, Dennis Ritchie wrote: On Saturday, 9 May 2015 at 08:30:31 UTC, Dave Akers wrote: The following... import std.stdio; void main() { write("How many students are there? "); int stu

Re: readf error bug?

2015-05-09 Thread Dave Akers via Digitalmars-d
On Sat, 09 May 2015 09:23:23 +, John Colvin wrote: > On Saturday, 9 May 2015 at 08:41:49 UTC, Dave Akers wrote: >> On Saturday, 9 May 2015 at 08:34:42 UTC, Dennis Ritchie wrote: >>> On Saturday, 9 May 2015 at 08:30:31 UTC, Dave Akers wrote: The following... import std.stdio; >>>