1.头文件:

#include<cstring>

2.

int a;//代表s的下标

string b//代表字符串

s1=s.insert(a,b);

文档中第 a 个字符前面插入字符串 b

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-10-02
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2021-10-25
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案