string& append (const string& str);
string& append (const string& str, size_t subpos, size_t sublen);   
string& append (const char* s);
string& append (const char* s, size_t n);
string& append (size_t n, char c);

/*
std::string stra("helloworld");
std::string str;
str.append(stra);
str.append(stra,0,5);
*/

/*
char pch[15]="helloworld";
std::string str;
str.append(pch);
str.append(pch,5);
*/

/*
std::string str;
str.append(5,'c');
*/

相关文章:

  • 2022-02-09
  • 2021-05-22
  • 2022-12-23
  • 2021-12-22
  • 2022-03-08
  • 2022-12-23
  • 2022-01-19
  • 2021-12-26
猜你喜欢
  • 2022-02-02
  • 2022-02-18
  • 2022-01-26
  • 2021-06-29
  • 2021-05-23
  • 2022-03-07
  • 2022-12-23
相关资源
相似解决方案