char* pp = new char[100]; char d[100] = "geovindu,涂聚文"; string ddstr= "geovindu,涂聚文"; char *dstr=nullptr; pp = d; dstr = &ddstr[0]; printf(dstr); printf(pp); printf("\n");
标签:涂聚文,pp,ddstr,dstr,char,printf,cpp,赋值,指针 From: https://www.cnblogs.com/geovindu/p/17581268.html