64,652
社区成员
发帖
与我相关
我的任务
分享
int main()
{
const char pcLocalFile[40] ="123";
strcpy((const_cast<char*>(pcLocalFile),"123");
cout << pcLocalFile << endl;
return 0;
}
int main()
{
const char pcLocalFile[40] ="123";
strcpy((char*)pcLocalFile,"123");
cout << pcLocalFile << endl;
return 0;
}