std::string str = "hello world" + 'b';
这是个很无聊的题目,"hello world"是一个char*,‘b’被提升为一个int,因此这是一个合法的表达式。
std::string str = "hello world" + 'b';
这是个很无聊的题目,"hello world"是一个char*,‘b’被提升为一个int,因此这是一个合法的表达式。
转载于:https://www.cnblogs.com/qsort/archive/2011/10/29/2228699.html