C# 提取字符串中小数点的个数 如”20.3.5“,提取字符中的点并获得小数点的个数 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int i = str.Length - str.Replace(",", "").Length; 小数点打错了,应该是这个int i = str.Length - str.Replace(".", "").Length; public int countD(int i){ foreach(char c in string) { int counts=0; if(c=='.') { counts+=1; return counts; } }} 新手问下WEB的问题!!!! 在线等,,着急!!!!! web系统word问题 接口 看一下 同志们 当DropDownList的text属性改变时我要把TextBox的visible的属性设为true,这个事件应该在哪里写? 求救~~~ASP.net获取html标记问题 打包问题 vncviewer远程控制怎么用? 请问.net开发有一些成熟的模式么? DataSet 和 rs 的疑问? vs2005打包问题 怎样验证身份证!!代码不知道哪里错了!!
int i = str.Length - str.Replace(".", "").Length;
{
foreach(char c in string)
{
int counts=0;
if(c=='.')
{
counts+=1;
return counts;
}
}
}