虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

SubString

  • Problem Statement You are given a string input. You are to find the longest SubString of input su

    Problem Statement You are given a string input. You are to find the longest SubString of input such that the reversal of the SubString is also a SubString of input. In case of a tie, return the string that occurs earliest in input. Definition Class: ReverseSubString Method: findReversed Parameters: string Returns: string Method signature: string findReversed(string input) (be sure your method is public) Notes The SubString and its reversal may overlap partially or completely. The entire original string is itself a valid SubString (see example 4). Constraints input will contain between 1 and 50 characters, inclusive. Each character of input will be an uppercase letter ( A - Z ). Examples 0) "XBCDEFYWFEDCBZ" Returns: "BCDEF" We see that the reverse of BCDEF is FEDCB, which appears later in the string. 1)

    标签: input Statement You are

    上传时间: 2015-09-21

    上传用户:sunjet

  • Sicily 1198题 SubString 源代码

    Sicily 1198题 SubString 源代码

    标签: SubString Sicily 1198 源代码

    上传时间: 2014-01-08

    上传用户:txfyddz

  • 接收pop3 Public Function Retrieve(ByVal rhs As Pop3Message) As Pop3Message Dim message, response A

    接收pop3 Public Function Retrieve(ByVal rhs As Pop3Message) As Pop3Message Dim message, response As String Dim msg As New Pop3Message msg.bytes = rhs.bytes msg.number = rhs.number message = "RETR " + rhs.number.ToString + vbCrLf write(message) response = Respond() If response.SubString(0, 3) <> "+OK" Then Throw New Pop3Exception(response) End If MsgBox(msg) msg.retrieved = True While (1 = 1) response = Respond() If response = "." + vbCrLf Then Exit While Else msg.message += response End If End While Return msg End Function

    标签: Pop3Message Function Retrieve response

    上传时间: 2013-12-28

    上传用户:fnhhs

  • VBS解析_delphi.rar function ParseFileDir(a_strFileName) { var l_FunNo var l_BaseDir var res

    VBS解析_delphi.rar function ParseFileDir(a_strFileName) { var l_FunNo var l_BaseDir var result l_BaseDir = "D:\\X项目\\" l_FunNo = a_strFileName.SubString(0, 5) result = l_BaseDir+l_FunNo + \\ +a_strFileName return result }

    标签: var a_strFileName ParseFileDir l_BaseDir

    上传时间: 2013-12-04

    上传用户:l254587896

  • 自己编写的String类

    自己编写的String类,可以用于代替<string>中的string类。支持==、!=、<、>等比较运算符,=复制运算符,有多种构造函数,动态分配内存,长度可变。容易转换成char*类型,而且使用深拷贝,指针使用得当。有常用的Index,Insert,Delete,Replace,SubString方法。而且源码中给出了String类的一个小应用。开发环境Visual C++ 6.0,测试程序为Console模式。

    标签: String 编写

    上传时间: 2014-01-05

    上传用户:古谷仁美