#include "stdio.h"
#define MAX 100
int CountWord(char *p)
{
char *q;
int count=0;
q=p-1;
for(*q=' ';*p;++p,++q)
if(*q==' '&&*p!=' ')
++count;
return count;
}
void conversion(char *p)
{
int a[MAX]={0};
int i=0,j=0,state=0;
while(*p)
{
while(*p<='9'&&*p>='0')
{
a[i]=a[i]*10+*p-'0';
++p;
state=1;
}
if(state)++i;
state=0;
++p;
}
for(;j<i;++j)
printf("%d ",a[j]);
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载