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