string substr (size_t pos = 0, size_t len = npos) const;
第一个是位置,第二个是长度,就是从哪里开始截取长度为len的字符串。

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2022-01-27
  • 2022-02-22
  • 2022-02-25
猜你喜欢
  • 2021-12-11
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案