历史

3.软件业巨无霸(6)(1/2)

    4.#include

    #include

    int FindSubString(char* pch)

    {

    int count=0;

    char* p1=pch;

    while(*p1!=‘\0’)

    {

    if(*p1==p1[1]-1)

    {

    p1++;

    count++;

    }

    else

    {

    break;

    }

    }

    int count2=count;

    while(*p1!=‘\0’)

    {

    if(*p1!==p1[1]+1)

    {

    p1++;

    count2--;

    }

    else

    {

    break;

    }

    if(count2==0)

    return count;

    return 0;

    }

    void ModifyString(char* pText)

    {

    char*