warning: deprecated conversion from string constant to ‘char*’
环境:linux下使用g++编译报错:warning: deprecated conversion from string constant to ‘char*’意思:不接受字符串(string)转换为字符串常量(char*)报错代码:#include <iostream>using namespace std;void print(char *s){ cout<&...
原创
2018-02-25 16:53:09 ·
2113 阅读 ·
0 评论