How is the D programming language financed?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Dec 23 15:41:16 PST 2010
On 12/24/10, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
> Use stdin.readf:
And don't forget to catch those exceptions!
import std.exception, std.stdio, std.conv;
void main(string[] args)
{
try
{
for (double x; stdin.readf(" %s ", &x) == 1;)
{
writeln(x); // or was it stat.postprocess? :)
}
}
catch (ConvException)
{
}
}
That should do it.
More information about the Digitalmars-d
mailing list