char * search(char *cpSource, char ch)
{
    char *cpTemp=NULL, *cpDest=NULL;
    int iTemp, iCount=0;
    while(*cpSource)
    {
    	if(*cpSource == ch)
        {
        iTemp = 0;
        cpTemp = cpSource;
        while(*cpSource == ch)
        	++iTemp, ++cpSource;
        if(iTemp > iCount)
        	iCount = iTemp, cpDest = cpTemp;
        if(!*cpSource)
       		break;
        }
        ++cpSource;
    }
    return cpDest;
}

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-02-09
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案