字符数组与指针
#include<iostream>
using namespace std;
int main()
{char *p="ilovechina";
cout<<p<<endl;//输出"ilovechina";
cout<<*p<<endl;//输出'i';
return 0;
}
using namespace std;
int main()
{char *p="ilovechina";
cout<<p<<endl;//输出"ilovechina";
cout<<*p<<endl;//输出'i';
return 0;
}