#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
namespace WORK {
int mystrlen(string *s1){
return s1->length();
}
}
int main()
{
string s1;
string *p=&s1;
cout <<"please enter s1"<<endl;
getline(cin,s1);
int len=WORK::mystrlen(p);
cout<<"len=:"<<len<<endl;
return 0;
}
12.26
最新推荐文章于 2024-03-18 21:44:49 发布