deprecated conversion from string constant to 'char*

给char*类型赋值为字符串字面量,用gcc编译是没问题的。但用g++编译会出现该警告:

warning: deprecated conversion from string constant to 'char*

posted @ 2017-03-02 09:19  LeeJuly  阅读(190)  评论(0编辑  收藏  举报