字符串~~(STL)~~大法好
by 该起什么名字 @ 2018-07-27 07:30:29
错哪了
by ljxljxljx @ 2018-07-27 22:17:04
使用while循环
```cpp
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
char c,s;
int ans=0;
cin>>c;
while(cin>>s)
{
if(s!=c)ans++;
c=s;
}
cout<<ans<<endl;
return 0;
}
```
by tZEROちゃん @ 2019-11-16 13:29:30
@[ljxljxljx](/user/57952)
by tZEROちゃん @ 2019-11-16 13:30:13