error C2440: “初始化”: 无法从“const char *”转换为“char *”

解决方法 直接强转

char* c = (char *)"hello";

 

【转】https://blog.csdn.net/qq_45560958/article/details/128613381

posted on 2023-03-02 06:32  lydstory  阅读(351)  评论(0编辑  收藏  举报

导航