using namespace std;
//头尾不可以有切分字符
vector<string> spilt(string s,char ch)
{
s.push_back(ch);
int start = 0,end = 0,size = s.size();
vector<string> vs;
for(int i = 0;i < size;i++)
{
if(s[i]==ch)
{
end = i;
string temp = s.substr(start,end-start);
start = i+1;
vs.push_back(temp);
}
}
return vs;
}
int main()
{
string s = "12/34/56/78/9";
vector<string> v = spilt(s,'/');
cout << v.size() << endl;
for(int i = 0;i < v.size();i++)
{
cout << v[i] << endl;
}
}