char* 随机字符是栈守卫之类的东西 string(背后是一个char*数组) string res; res.push_back('a'); return res; 两个指针无法相加 更多:C++字符串字面量 -能实现的原因类似于新建了一个变量