#include <iostream>
#include<cstring>
/*对于输入1,2,3,4,5,6...,输出1 2 3 4 5 6...*/
using namespace std;
int main()
{
ios::sync_with_stdio(false);
int dp[1000],i=0;
cin.tie(0);
cout.tie(0);
cout<<"One way:"<<endl;
memset(dp,0,sizeof(dp));
while(cin>>dp[i++]&&cin.get()!='\n');
for(int j=0;j<i;j++)
cout<<dp[j]<<" ";
cout<<endl;
cout<<"Another way:"<<endl;
int pd[1000],t=0;
char *str=new char[1000],*temp;
cin.getline(str,1000);
temp=strtok(str,",");
while(temp)
{
sscanf(temp,"%d",&pd[t++]);
temp=strtok(NULL,",");//注意此处需要将剪切的各片段分别取出
}
for(int j=0;j<t;j++)
cout<<pd[j]<<" ";
cout<<endl;
cout<<"Judge a character in a string.\n";
cout<<"c in abcdef "<<strchr("abcdef",'c')<<endl;
return 0;
}