在VS2017中直接写下面语句,会提示错误,不能将const char *转为char * char *testString = "This is test string" 解决办法:项目属性->C/C++->语言->符合模式项选择否即可 相关文章: