當前位置:首頁 » 免費在線 » 一糯千金小說免費閱讀伊諾

一糯千金小說免費閱讀伊諾

發布時間: 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);
}

熱點內容
2019凈網網路小說 發布:2025-02-08 11:02:39 瀏覽:476
帝少言小說免費閱讀 發布:2025-02-08 09:40:24 瀏覽:115
人民日報時評聽書 發布:2025-02-08 09:27:16 瀏覽:674
求有深度的完結小說 發布:2025-02-08 08:03:30 瀏覽:527
古代小說背景描述 發布:2025-02-08 08:01:27 瀏覽:547
青春校園小說中陌開頭的名字 發布:2025-02-08 07:34:06 瀏覽:136
免費閱讀花豹突擊隊小說 發布:2025-02-08 07:23:21 瀏覽:917
穿越空間小說免費閱讀全文 發布:2025-02-08 06:12:27 瀏覽:396
免費小說愛你不負年華全部章節 發布:2025-02-08 05:45:13 瀏覽:148
美國種田小說排行榜 發布:2025-02-08 05:15:18 瀏覽:861