自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (3)
  • 收藏
  • 关注

转载 检查用户输入代码

using System;namespace Example_6{class DigitLetterPunctuation{   static void Main(string[]args)   {    int countLetters=0;    int countDigits=0;    int countPunctuations=0;    string input;    Console

2008-05-05 00:54:00 332

jquerry 速记手册

可以迅速查找jquerry中的方法,属性,很实用哦

2009-06-02

webserviec学习

webserveice基本原理解放垃圾擦解放棵

2008-09-25

c#软件经典

using System;<br>namespace Example_6<br>{<br>class DigitLetterPunctuation<br>{<br> static void Main(string[]args)<br> {<br> int countLetters=0;<br> int countDigits=0;<br> int countPunctuations=0;<br> string input;<br> Console.WriteLine("请输入一个字符串");<br> input=Console.ReadLine();<br> foreach(char chr in input)<br> {<br> if(char.IsLetter(chr))<br> countLetters++;<br> if(char.IsDigit(chr))<br> countDigits++;<br> if(char.IsPunctuation(chr))<br> countPunctuations++;<br> }<br> Console.WriteLine("字母的个数为:{0}",countLetters);<br> Console.WriteLine("数字的个数为:{0}",countDigits);<br> Console.WriteLine("字母的个数为:{0}",countPunctuations);<br><br> }<br><br>}<br>} <br><br> void check()<br> {<br> /*<br> * string str = "和";//你要判断的字符 <br> byte[] tmp = System.Text.UnicodeEncoding.Default.GetBytes(str); <br> if(tmp.Length >1) <br> { <br> //字符为汉字 <br> } <br> */<br> string s = numericUpDown1.Value.ToString();<br> int n = 0;<br> foreach (char c in s)<br> {<br> if (c >= 0x4e00 && c <= 0x9fa5)<br> n++;<br> }<br> if (n > 0)<br> {<br> MessageBox.Show("输入为数字");<br> }<br> }<br>

2008-05-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除