need help

Boris Wang nano.kago at hotmail.com
Mon Apr 24 20:13:58 PDT 2006


int main( char[][] args )
{
 foreach( char[] arg; args[1 .. args.length] )
 {
     printf( "%.*s ", arg );
 }

 for ( int i = 0; i < args.length; i++ )
 {
     printf("%.*s ", args[i] );
 }

 return 0;
}

The first printf can't display the information, and the second do.

I use dmd 0.154, XP SP2.





More information about the Digitalmars-d-learn mailing list