char* a = "abcdefghigklmnopqrstuvwxyz_abcdefghigklmnopqrstuvwxyz_"; char b[5] = {0}; int size = sizeof(b); memcpy(b, a, size-1); cout << b << endl;
memcpy(&b, &a, size);
64,649
社区成员
250,477
社区内容
加载中
试试用AI创作助手写篇文章吧