Run ID:133806
提交时间:2025-10-22 15:42:34
#include<iostream> #include<cstring> using namespace std; int strlen(char a[]){ gets(a); int i=0,s=0; while(a[i]!='\0'){ s++; i++; } return s; } int main() { char b[1005]; gets(b); cout<<strlen(b); return 0; }