且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

字符串中的第一个字符是字母吗?

更新时间:2021-12-15 22:08:44



弗兰克&QUOT; < fr *** @ a-znet.com写信息

新闻:OV **************** @ TK2MSFTNGP05.phx.gbl ...

" Frank" <fr***@a-znet.comwrote in message
news:OV****************@TK2MSFTNGP05.phx.gbl...

必须有一个更简单的方法然后我正在做的是确定字符串中的第一个

字符是否是有效字母。


我的代码越来越大了。必须有更好的方法。
There must be an easier way then what I''m doing to determine if the first
character in a string is a valid letter.

My code is getting to big. There must be a better way.



isalpha(s [0])有什么问题吗?


Brian

Anything wrong with isalpha(s[0]) ?

Brian


唯一有问题的是我无法找到它


谢谢


" Brian Muth" < bm *** @ mvps.orgwrote in message

news:eN ************** @ TK2MSFTNGP05.phx.gbl ...
The only thing wrong with it is that I couldn''t find it

thanks

"Brian Muth" <bm***@mvps.orgwrote in message
news:eN**************@TK2MSFTNGP05.phx.gbl...

>

"弗兰克&QUOT; < fr *** @ a-znet.com写信息

新闻:OV **************** @ TK2MSFTNGP05.phx.gbl ...
>
" Frank" <fr***@a-znet.comwrote in message
news:OV****************@TK2MSFTNGP05.phx.gbl...

>必须有一个更简单的方法,然后我正在做的是确定字符串中的第一个
字符是否是有效字母。

我的代码变得越来越大。必须有更好的方法。
>There must be an easier way then what I''m doing to determine if the first
character in a string is a valid letter.

My code is getting to big. There must be a better way.



isalpha(s [0])有什么问题吗?


Brian


Anything wrong with isalpha(s[0]) ?

Brian



当我在这里时,我应该问你修剪一串领先的

空白区域。


有简单的方法吗?


我一直在搜索文档和互联网但却找不到任何东西。


再次感谢

" Brian Muth" < bm *** @ mvps.orgwrote in message

news:eN ************** @ TK2MSFTNGP05.phx.gbl ...
While I was at it I should have asked you about trimming a string of leading
white space.

Is there a easy way?

I''ve been searching the doc and the internet but can''t find anything.

Thanks again
"Brian Muth" <bm***@mvps.orgwrote in message
news:eN**************@TK2MSFTNGP05.phx.gbl...

>

"弗兰克&QUOT; < fr *** @ a-znet.com写信息

新闻:OV **************** @ TK2MSFTNGP05.phx.gbl ...
>
" Frank" <fr***@a-znet.comwrote in message
news:OV****************@TK2MSFTNGP05.phx.gbl...

>必须有一个更简单的方法,然后我正在做的是确定字符串中的第一个
字符是否是有效字母。

我的代码变得越来越大。必须有更好的方法。
>There must be an easier way then what I''m doing to determine if the first
character in a string is a valid letter.

My code is getting to big. There must be a better way.



isalpha(s [0])有什么问题吗?


Brian


Anything wrong with isalpha(s[0]) ?

Brian