你也能拿高薪: 名企面试自助手册

首页
字体:
上 章 目 录 下 页
3.软件业巨无霸(6)
    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* 
本章未完,请翻开下方下一章继续阅读
上 章 目 录 下 页