字符串验证。 [英] String validation.

查看:60
本文介绍了字符串验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道如何让字符串只包含字母,单个空格和连字符。

解决方案

如果我们这样做会很有帮助知道你是否在询问一个以null结尾的C字符串,std :: string / std :: wstring或.net字符串。 :)

Hi guys, I would like to know how you can allow string to consist of only letters, single space and hyphen.

解决方案

It would be helpful if we knew if you were asking about a null-terminated C string, std::string/std::wstring, or a .net string. :)


这篇关于字符串验证。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆