need help

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Apr 24 21:04:25 PDT 2006


"Boris Wang" <nano.kago at hotmail.com> wrote in message 
news:e2k46n$1dkm$1 at digitaldaemon.com...
> The first printf can't display the information, and the second do.

Uhh, yes it does.  For me, anyway.

But I think the real question here is - why are you using printf instead of 
writef?  ;)

int main( char[][] args )
{
 foreach( char[] arg; args[1 .. args.length] )
 {
  writef( arg, ' ' );
 }

 writefln();

 for ( int i = 1; i < args.length; i++ )
 {
  writef( args[i], ' ' );
 }

 return 0;
}

(These print identical lines for me.) 





More information about the Digitalmars-d-learn mailing list