char字符串的复制

const char *p = "how are you ?";
char name[20] = "ABCDEFGHIJKLMNOPQRS";

strcpy(name, p);
cout << name << endl;

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/a12345d132/article/details/84827678