C++基本语法-----copy

std::basic_string copy copy( dst, count, startInedx )web dst : 目的的字符串的首地址 count : 要复制的字符的个数 startIndex : 起始地址 std::string s = “1234567890”; char c[30]; size_t len = s.copy(c, s.size() , 3); c[len] = ‘
相关文章
相关标签/搜索