#include<iostream>
#include<sstream>
using namespace std;
int main()
{
string a;
cout<<"请输入字符串:";
cin>>a;
const string& b=a;
cout<<"字符串的长度为:"<<b.length();
cout<<endl;
return 1;
}

相关文章:

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