Problem E: 字符串的拷贝

Problem E: 字符串的拷贝

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1433  Solved: 728
[Submit] [Status] [Web Board] [Creator:]

Description

请同学们学习完下一章之后再回来结合指针做。
----------------------------------------------------------------------------------------------------------------------------------------------------------
编写一函数,完成一个字符串的拷贝,要求用字符指针实现。在主函数中输入任意字符串,并显示原字符串,调用该函数之后输出拷贝后的字符串。

Input

一个字符串长度不超过80

Output

两行数据:
OldString=“原字符串”
NewString=“复制之后字符串”

Sample Input Copy

Bo/Bo/Lao/Shi

Sample Output Copy

OldString=Bo/Bo/Lao/Shi
NewString=Bo/Bo/Lao/Shi