readf with strings

bearophile bearophileHUGS at lycos.com
Wed Jun 22 13:18:42 PDT 2011


Ali Çehreli:

> "oku" means "read":
> 
>     // Read into an existing variable
>     double d;
>     oku("Please enter a double: ", &d);
> 
>     // Read and return a value
>     int i = oku!int("Please enter an int: ");

I have a related enhancement request since lot of time:
http://d.puremagic.com/issues/show_bug.cgi?id=4716

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list