#include <iostream>
using namespace std;

int main()
{
	char *p=new char[10];
//  *p="zds"    错误
	strcpy(p,"zds");
	char *q=new char[10];
//	q=p   错误
//	*q=*p; 错误
	strcpy(q,p);
	cout<<p<<endl;
	cout<<q<<endl;
	return 0;
}


相关文章:

  • 2021-11-29
  • 2021-06-16
  • 2022-12-23
  • 2021-11-18
  • 2021-11-29
  • 2021-08-08
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2022-02-14
  • 2021-09-22
  • 2022-02-12
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案