一、向string的后面加string 
C++中append函数的用法

#include<iostream>
#include<string>

using namespace std;

int main()
{
	string b;//定义字符串
	b = "";//对字符串清空
	b.append("0000");
	b.append("0001");
	cout << b ;
} 

 

C++中append函数的用法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-12-13
  • 2021-11-21
  • 2022-02-10
  • 2022-02-25
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-09-25
  • 2021-10-21
  • 2022-01-29
相关资源
相似解决方案