![]() |
#2
beyondlwm2008-10-23 16:51
|
#include<iostream>
using namespace std;
void stringcopy(char *p)
{
char *ps;
while(*p!='\0')
{
*ps=*p;
ps++;
p++;
}
cout<<ps<<endl;
}
void main()
{
char *p="abcdeffg";
stringcopy(p);
}