Need som assistense with readf();

Mr. P-teo dthp18 at gmail.com
Sun Jul 8 02:33:31 PDT 2012


>
> Just insert spaces before the format specifiers:
>
> import std.stdio;
>
> int main(){
>     long number, number2;
>     write("Enter an integer: ");
>     readf(" %d", &number);
>     write("another no");
>     readf(" %d", &number2);
>
>     writeln(number, ' ', number2);
>     return 0;
> }
>
> Ali


Thanks very much, that got it sorted,




More information about the Digitalmars-d-learn mailing list