|
[code:1]#include <stdio.h>
#include <string.h>
main(int argc,char* Hello[])
{
char cha[]="hello world!";
char chb[20];
int i;
if( argc>4)
{
printf("\n main %d %s \n",argc,*(Hello+3));
}
else
{
printf("less argc\n");
}
for (i=0;i<argc;i++)
/*{*/
{
strcpy(chb,*(Hello+i));strcat(cha,chb);printf("%s\n" ,chb);printf("%s\n" ,cha);
}
/* chb[]=*(Hello+i);
strcpy(chb,*(Hello+i));
printf("%s\n" ,chb);
strcat(cha,chb);
printf("%s\n" ,cha);
}*/
i=0;
printf("this arg=%s\n",cha);
}
[/code:1] |
|