#include"iostream.h";
void strcpy(char *d,char *s)
{
while(*s!='\0')
{
*d=*s;
d++;
s++;
}
}
void main()
{
char a[]="hello!";
char b[]="nihao!!";
strcpy(b,a);
cout<<a<<endl;
cout<<b<<endl;
}
#include"iostream.h";
void strcpy(char *d,char *s)
{
while(*s!='\0')
{
*d=*s;
d++;
s++;
}
}
void main()
{
char a[]="hello!";
char b[]="nihao!!";
strcpy(b,a);
cout<<a<<endl;
cout<<b<<endl;
}