/*æä¸ç¥éä½ è¦æ±çæ¯æ¥æ¾ç第ä¸ä¸ªå符çä¸æ ï¼è¿æ¯ææä¸æ é½è¦æ¾å°ãæåçæ¯åªæ¾ç¬¬ä¸ä¸ªåºç°çä¸æ
没æè¿è¡ï¼å¦æä¸è½è¿è¡è¯·è¿½é®*/
#include<stdio.h>
#include<string.h>
int main()
{
char ch[100]="abcdel12345",c;
scanf("%c",&c);
strchr(c)?printf("%d\n",strchr(c)-ch):printf("error\n"));
return 0;
}
温馨提示:内容为网友见解,仅供参考