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] = ‘
相關文章
相關標籤/搜索