-
CUnit-2.1-2
C单源测试的源代码。可以以这个代码建立单元测试的框架,对C函数进行单元测试。(C source code for single-source test. You can use this code is to establish a framework for unit testing, unit testing for C functions.)
- 2014-04-17 10:39:13下载
- 积分:1
-
C#成品
说明: 在C#环境下利用逆波兰式开发的代码较为精简的简易计算器。(Simple calculator with simpler code developed in reverse Polish style in C# environment.)
- 2020-06-16 01:00:01下载
- 积分:1
-
C# Socket文件传输源码
Socket文件传输源码,实现了 服务端向客户端 发送文件 功能功能介绍: 使用socket实现文件传输同时使用了多线程,首先服务端选择文件,开始监听启动客户端,选择连接就实现了文件的传输。注意: 不同机器连接要修改源代码的的ip地址。 开发环境为Visual Studio 2010
- 2018-06-25下载
- 积分: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
-
BP算法交叉验证-原始
利用matlab的gui设计的带有输入和输出功能的界面图形,实现等距线可视性很强,自己独立编写的数据和图形,学习非常值得,实现BP压缩图像,c语言(Uses the Matlab GUI design with the input and output function interface graphics, realizes the isometric line visibility is very strong, independently compiles the data and graphics, the study is very worthwhile, realizes the BP compression image, the C language.)
- 2020-06-19 18:40:02下载
- 积分:1
-
cvcleexception
键盘鼠标记录DLL,很不错的易语言源码,易爱好者可以下载使用()
- 2018-05-04 17:30:31下载
- 积分:1
-
pf1_LearnVisualCSharpFarsi
this is a persian ebook for c# learning
- 2013-08-09 19:32:21下载
- 积分:1
-
AIS-Simulator
this is test version for ais simulator.
- 2021-03-15 16:59:23下载
- 积分:1
-
Layer
说明: ArcEngine二次开发图层操作,包括添加图层,添加Shape文件,删除图层,移动图层(ArcEngine layer secondary development operations, including adding layers, adding Shape file, delete the layer, move layer)
- 2011-02-21 20:03:16下载
- 积分:1
-
weather
该源代码主要是用来学习WebService,是很好的学习材料,主要功能是用来查询天气功能。(The source code is mainly used to study WebService, is a good learning materials, the main function is used to check the weather feature.)
- 2013-10-15 14:12:16下载
- 积分:1