-
CPP
本程序可以计算出一篇文章中单词后数字后英语单词等的重复个数,很好的(This program can be calculated in a paper words after digital English words repetition of number, very good
)
- 2012-04-16 17:16:24下载
- 积分:1
-
backjump
back jumping algorithm
- 2009-05-05 22:41:07下载
- 积分:1
-
对比度拉伸
说明: Visual c++数字图像处理对比度拉伸算法(Visual c ++ digital image processing contrast stretching algorithm)
- 2020-05-06 10:28:21下载
- 积分:1
-
Graphic
C#课程设计制作的,图形编辑器,完全是自己写的,可能不太好,但是够大学的同学交任务了。(C# curriculum design, graphics editor, write your own, may not be good enough for University students with tasks.)
- 2013-01-06 11:50:17下载
- 积分:1
-
Legend
AE+C#在pagelayoutcontrol中添加图例、指北针、比例尺、文字的源代码,在很多开发中可以用到(AE+C# added in pagelayoutcontrol in Legend, compass, scale, the text of the source code can be used in many developing)
- 2012-09-07 15:29:39下载
- 积分:1
-
5932748
Rle and huffman of the centralized coding and decoding()
- 2017-11-08 07:12:09下载
- 积分:1
-
c# 扫描IP Http Header
c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
- 2014-06-23下载
- 积分:1
-
GpioDemo
开源硬件的测试demo程序,可参考学习使用(Open source hardware testing demo program, you can learn how to use good reference document, I hope you like it, give strong support to continue uploading,)
- 2014-04-16 16:42:59下载
- 积分:1
-
VCNetworkhigh-levelprogramming
本书主要面向具有一定VC网络编程基础并希望学习较高层次编程技术的读者(The book has some major VC-oriented network programming base and hopes to learn higher-level programming technology readers)
- 2008-12-25 09:30:49下载
- 积分:1
-
GSM-MCU-SMS-DTMF-tone-test
GSM-MCU短信DTMF音测试,源代码 已移植测试过(GSM-MCU SMS DTMF tone test)
- 2013-11-18 15:43:59下载
- 积分:1