Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
string::size 是否返回表示字符串所需的数组元素数,或呈现字符串所需的字形数?wstring 的行为是否相同?
它返回数组中char/的数量。wchar_t这允许对 astd::string进行编码,utf-8其中作为单个char可能没有任何意义。
char
wchar_t
std::string
utf-8