vb 回文字符串个数

来源:百度知道 编辑:UC知道 时间:2024/07/02 14:53:33
回文字符串:前后看都一样的字符串。 这是要判断的文件
When abba advereda often lottol peopleop interested applylpa hunters sendnes theeth resuer sameas position metiitme company will rececer xyxy resumes singnsi job opening therefore is very important qwerewq applicant must demonstrate that he or she is the best person someos joboaj hunterh read books or takeket courses to help themht make good firstrif impression These books andna courses are fullfu of advice and suggestions toto help job applicants preperp fororf their interviews successful applicants dresserd appropriately andan have clean and neateat appearance They takekat their resume listing of theireiht education and workrow experience with them toto the interview They also prepare listsil of questions about the job orro the companynpmoc
已给程序:
Option Base 1
Dim s As String
Private Sub Command1_Click()
Open App.Path & "\in3.dat" For Input As #1
s = Input(LOF(1), #1)
Close #1
End Sub

'以下Function 过程用于判断字符串是否为回文
Function foundhuiwen(p As String)
'考生编写
If StrReverse(p) = p Then foundhuiwen = True
End Function

s为原字符串
若s=strreverse(s)为真。则为回文。