3 variant questions

Saaa empty at needmail.com
Tue May 12 10:13:54 PDT 2009


>>
>
> You get an AV because you're passing the argument by value. You need to 
> pass its address instead.
>
> Try this:
>
> void main() {
>  int i;
>  get(file, "i", &i);
>  writeln(i);
> }
>
> It will print "7".

Ah of course, thanks. 




More information about the Digitalmars-d-learn mailing list