代码:
#include<bits/stdc++.h> using namespace std; int main() { char a[210]; int b; while(cin.getline(a,210)) { if(a!=" ") { b=strlen(a); cout<<b; break; } else { cout<<"0"; break; } } return 0; }