#include<iostream>
using namespace std;
int main()
{
	char cha1[15],cha2[15];
	strcpy(cha1,"hello world!");                  //对于char数组的赋值的一种方法
	char* point_char=cha1;                     //定义char型指针指向cha1
	int i;
	for(i=0;*point_char!='\0';i++,point_char++)
	{
	    cha2[i]=*point_char;
	}
	cha2[i]='\0';                               //手动的添加字符串结束符
	cout<<cha1<<endl<<cha2<<endl;
    return 0;
}
