当前位置:首页 » 免费在线 » 一糯千金小说免费阅读伊诺

一糯千金小说免费阅读伊诺

发布时间: 2022-06-03 22:42:09

① 1. 成语纠错

#include "stdio.h"
#include "stdlib.h"
#include "string.h"

typedef struct gbk{
char str[401];
struct gbk *next;
}GBK;

typedef struct Idioms{
char str[9];
struct gbk *next;
}Idioms;

void main()
{
int n,m,i,j=0,x=0,y=0,count=0,flag=-1,fm[50];
scanf("%d %d",&n,&m);
GBK *pn=(GBK *)malloc(sizeof(GBK)),*p1,*headn=pn;
Idioms *pm=(Idioms *)malloc(sizeof(Idioms)),*p2,*headm=pm;
char str[8]="0000000";

for(i=0;i<m+n;i++)
{
if(i<n)
{
for(j=0;j<200&&pn->str[0]!='\n';j++)
{
p1=(GBK *)malloc(sizeof(GBK));
pn->next=p1;
pn=p1;
scanf("%s",pn->str);
pm->next=null;
}
}
else
{
for(j=0;j<8&&pm->str[0]!='\n';j++)
{
p2=(Idioms *)malloc(sizeof(Idioms));
pm->next=p2;
pm=p2;
scanf("%s",pm->str);
pm->next=null;
}
}
}
scanf("%s",str);
pm=headm->next;
pn=headn->next;
while(pm)
{
for(i=0,j=1;j<9;i++,j++)
{
if(str[i]==pm->str[i]&&str[j]==pm->str[j]) count++;
else flag=i;
if(count==3)
{
fm[i]=1;
break;
}else fm[i]=0;
}
pm=pm->next;
}
while(pn)
{
for(i=0;i<strlen(pn->str);i++)
{
if(str[flag]==pn->str[i]&&str[flag]==pn->str[i++])
{
x=1;break;
}
}
if(x==1) break;
pn=pn->next;
}
x=0;
for(y=0;y<50;y++)
{
if(fm[y]==1)
{
for(i=0;i<strlen(pn->str);i++)
{
if(headm->str[flag]==pn->str[i]&&headm->str[flag+1]==pn->str[i+1])
{x=1;break;}
}
if(x==1) break;
pm=pm->next;
}
else pm=pm->next;
}
printf("%s",pm->str);
}

热点内容
追美科幻小说 发布:2025-10-20 08:47:35 浏览:538
yy小说多女完本小说推荐 发布:2025-10-20 08:28:24 浏览:460
穿越言情完结小说推荐 发布:2025-10-20 08:25:32 浏览:720
文笔好的小说推荐现代言情 发布:2025-10-20 08:02:07 浏览:796
小学生读科幻小说 发布:2025-10-20 07:58:47 浏览:117
唯美悲伤的小说排行榜 发布:2025-10-20 07:58:10 浏览:340
炒鸡甜又有肉的电竞小说推荐 发布:2025-10-20 07:44:44 浏览:33
必须看的免费小说 发布:2025-10-20 07:28:26 浏览:682
校园男生言情小说 发布:2025-10-20 06:23:51 浏览:843
特污特甜的校园小说在线阅读 发布:2025-10-20 06:23:51 浏览:898