Visual Studio 2017中"const char *" 类型的值不能用于初始化 "char *" 类型的实体

代码示例:

char* text = "hello world";

解决方案:

项目属性->C/C++->语言>符合模式项>选择否

 

posted @ 2019-06-10 16:20  追风少年Vip  阅读(1791)  评论(0编辑  收藏  举报