很着急 C语言的

2025-03-23 17:28:22
推荐回答(1个)
回答1:

	/***************begin************************/
int index = 0;
int rslt = 0;
char *pp = str1;
while (*pp != 0)
{
if (*pp == ch)
{
rslt = index+1;
}
pp++;
index++;
}

return rslt;
/*******************end********************/