while ((*strDest++=*strSrc++)!='/0'); 分解成单条语句

来源:互联网 发布:淘宝哪里看自己的等级 编辑:程序博客网 时间:2024/05/16 06:23

while(1)
{
char temp;
temp=*strDest=*strSrc;
strDest++;
strSrc++;
if(temp=='/0')
break;
}

或者说
while(*strSrc!='/0')
{
*strDest=*strStr;
strDest++;
strStr++;
}
*strDest=*strSrc;

原创粉丝点击