2 param Problems
Fabian Claßen
admin at fabs-world.de
Sun Nov 30 11:03:17 PST 2008
Walter Bright Wrote:
> Fabian Claßen wrote:
> > double zahl = add(1, 5.6, 41, "Hello");
> > writefln("%d", zahl);
> [...]
> >
> > When I try to run this codes there is printed following message in the cmd:
> >
> > Error: std.format floating
> >
> > Please help me. I have no idea.
>
>
> %d is for integral arguments, not floating point ones. Try %s.
Thank you.
Now does the code works. :D
Amazing *lol
I love the D programming language
More information about the Digitalmars-d
mailing list