字符串中的第一个字符是字母吗? [英] Is the first character in a string a letter?
本文介绍了字符串中的第一个字符是字母吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
必须有一个更简单的方法,然后我正在做的是确定一个字符串中的第一个
字符是否是一个有效的字母。
我的代码变得越来越大。必须有更好的方法。
提前致谢
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.
Thanks in advance
推荐答案
弗兰克" < 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...
>
"弗兰克" < 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...
>
"弗兰克" < 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
这篇关于字符串中的第一个字符是字母吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文