题样
#include<math.h>
int decode(char**s)
{
int c=0;
int i=0,j=0,k=0;
int count=0;
for(i=0;i<4;i++)
{
for(j=0;s[4][j]!='\0'&&s[4][j]!='\n';j++)
{
for(k=0;s[i][k]!='\0'&&s[i][k]!='\0';k++)
{
if(s[i][k]==s[4][j])
{
count++;
}
}
}
switch (i)
{
case 0:
c=count*pow(10,3);
count=0;
break;
case 1:
c=c+count*pow(10,2);
count=0;
break;
case 2:
c=c+count*10;
count=0;
break;
case 3:
c=c+count;
count=0;
break;
}
}
return c;
}
`(*>﹏<*)′谢谢大佬