编译的时候会报如下错误:warning: ISO C++11 does not allow conversion from string literal to ‘char *‘ [-Wwritable-strings]
改正:将返回值char * 改成const char *
C++报错
原文:https://www.cnblogs.com/qvq-/p/9932839.html