不用,实现strcpy函数,为什么运行结果不对
#include <iostream.h>char *strcpy(char *strdest,const char *strsrc)
{
char *temp;
temp=strdest;
strsrc=temp;
return temp;
}
void main()
{
char a[]="123",b[10];
strcpy(a,b);
cout<<"a="<<a<<endl<<"b="<<b<<endl;
}
2007-04-03 23:42