zoukankan      html  css  js  c++  java
  • 访客统计

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Text;
    using System.Text.RegularExpressions;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                StreamReader sr = new StreamReader(@"uv.txt", Encoding.Default);
                String line;
                List<String> lss = new List<String>();
                while ((line = sr.ReadLine()) != null)
                {
                    string cl = new Regex(@"(?<=s)d+").Match(line).ToString();
                    if (!lss.Contains(cl))
                    {
                        lss.Add(cl);
                    }
                }
                Console.WriteLine(lss.Count);
                Console.Read();
            }
        }
    }
    uv文件:http://files.cnblogs.com/files/tqlin/uv.zip
  • 相关阅读:
    数组的基本操作
    面向对象
    继承
    JavaBean规范
    JVM内存模型
    数组的排序
    this
    访问控制权限
    数组
    方法的重载
  • 原文地址:https://www.cnblogs.com/tqlin/p/5179748.html
Copyright © 2011-2022 走看看