zoukankan      html  css  js  c++  java
  • 验证整数

    Function IsInt(str)

        If IsNumeric(str) or  (len(str)>5) then

            IsInt=False

            Exit Function

        Else

            If (len(str)<5) then

                IsInt=True

                Exit Function

            Else

                If CInt(left(str,4))>3276 then

                    IsInt=False

                    Exit Function

                Else

                    If CInt(Left(str,4))=3276 and CInt(Right(str,1))>7 then

                        IsInt=False

                        Exit Function

                    Else

                        IsInt=True

                    End If

                End If    

            End If

        End If

    End Function

  • 相关阅读:
    hdu3874
    spoj D-query
    hdu4348
    hdu4417
    hdu2665
    [LUOGU] P1057 传球游戏
    [CODEVS] 2193 数字三角形WW
    [CODEVS] 2189 数字三角形W
    [模板] 线段树
    [模板] 树状数组
  • 原文地址:https://www.cnblogs.com/djcsch2001/p/2035762.html
Copyright © 2011-2022 走看看