void test12() { char a[50]; int n=0; while(cin>>a[++n]); cout<<n<<endl; }
我写了这样一个函数,输入abc,为啥会输出4,不应该是3吗?真没看懂