deprecated conversion from string constant to 'char*
给char*类型赋值为字符串字面量,用gcc编译是没问题的。但用g++编译会出现该警告:
warning: deprecated conversion from string constant to 'char*
本文来自博客园,作者:LeeJuly,转载请注明原文链接:https://www.cnblogs.com/peterleee/p/9373769.html
给char*类型赋值为字符串字面量,用gcc编译是没问题的。但用g++编译会出现该警告:
warning: deprecated conversion from string constant to 'char*
本文来自博客园,作者:LeeJuly,转载请注明原文链接:https://www.cnblogs.com/peterleee/p/9373769.html