#include<iostream>
#include<cstring>
using namespace std;
int main(){
string a;
cin>>a;
cout<<strlen(a);
return 0;
}
编译时第七行有错误,请问这是怎么回事呢?
错误显示:7 E:\little c\VC++\text1.cpp cannot convert `std::string* to `const char** for argument `1* to `size_t strlen(const char*)*