/*数组表示*/
void strcpy(char *s, char *t)
{
          int i;
          i=0;
          while ((s[i]=t[i])!='\0')
         {
               s++;
               t++;
           }
}
/*指针1*/
void strcpy(char *s, char *t)
{
          while((*s=*t)!='\0')
        {
                s++;
                t++;
         }
}
/*指针2*/
void strcpy(char *s, char *t)
{
          while((*s++=*t++)!='\0')
             ;
}
/*指针3*/
void strcpy(char *s, char *t)
{
          while((*s++=*t++)!)
              ;
}

 

posted on 2013-06-21 09:53  欧小弟  阅读(158)  评论(0编辑  收藏  举报