我已经将c ++转换为c类型字符串并使用strlen但它无法正常工作.
#include<bits/stdc++.h> using namespace std; int main(){ string s("Hello"); s.c_str(); cout<<strlen(s); }
c++ string stl
c++ ×1
stl ×1
string ×1