69,382
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include <string.h>
int main()
{
char a[10]="abc" ,b[10]="d";
//a="acb";
//b="d";
char *d,*e;
d=a;
e=b;
strcpy(d,e);
//strcpy(a,b);
printf("%s",a);
system("pause");
return 0;
}
#include<iostream>
#include <string>
using namespace std ;
void main (){
char a[10] = "acb";
char *b = "d";
strcpy(a,b);
cout<<a;
system("pause");
}