struct KK { string h; }; int _tmain(int argc, _TCHAR* argv[]) { char*t="adgag"; struct KK* a=(struct pp*)malloc(sizeof(struct pp)); a->h = t; //如何把t赋给a->h??????? |就这么赋值 cout < <a->h < <endl; free(a); getchar(); return 0; }
6.3w+
社区成员
25.0w+
社区内容