网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

统计多字符出现次数

  1. using System; 
  2. using System.Collections.Generic; 
  3. using System.Linq; 
  4. using System.Text; 
  5. using System.Collections; 
  6.  
  7. namespace ConsoleApplication3 
  8.     class Program 
  9.     { 
  10.         static void Main(string[] args) 
  11.         { 
  12.             a(); 
  13.         } 
  14.         public static int a() 
  15.         { 
  16.             string ab; 
  17.             string full = "aaabbbcaaa"; 
  18.             Hashtable stringTime = new Hashtable(); 
  19.             for (int i = 0; i < full.Length-1; i++) 
  20.             { 
  21.                  
  22.                 int k = 0; 
  23.                  ab = full.Substring(i, 2); 
  24.                 for (int j = 0; j < full.Length-1; j++) 
  25.                 { 
  26.                     string cAb = full.Substring(j, 2); 
  27.                     if (ab.Equals(cAb)) 
  28.                     { 
  29.                         k++; 
  30.                     } 
  31.                 } 
  32.                 if (!stringTime.ContainsKey(ab)) 
  33.                 { 
  34.                     stringTime.Add(ab, k); 
  35.                 } 
  36.             } 
  37.             return 0; 
  38.         } 
  39.          
  40.     } 

 

在潞城等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供做网站、成都网站设计 网站设计制作按需定制网站,公司网站建设,企业网站建设,成都品牌网站建设,成都全网营销推广,成都外贸网站建设公司,潞城网站建设费用合理。


分享标题:统计多字符出现次数
当前地址:http://bjjierui.cn/article/igihgj.html

其他资讯