#include<stdio.h>
#include<string.h>
char res[100][100];
int t;
int main()
{
char s[100];
int inword=0;
int word=0;
int k=0;
gets(s);
int i=0;
int post=0;
while(s[i]!='.')
{
if(s[i]!=' ' && s[i]!='.')//此时说明是字母
{
for(post=i;s[post]!=' ' && s[post]!='.';post++)
res[word][k++]=s[post];
}
res[word][k]='\0';
if(s[post]=='.')
{
res[word][k]='\0';
break;
}
i=post+1;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载