Welcome![Sign In][Sign Up]
Location:
Search - System.Collections

Search list

[CSharpHashTableDemo

Description: 哈希函数的使用,System.Collections.Hashtable 的例子-hash function, examples System.Collections.Hashtable
Platform: | Size: 9779 | Author: 杨微 | Hits:

[Other resourceDijkstra

Description: Dijkstra算法求最短路径(C#版) using System using System.Collections using System.Text namespace Greedy { class Marx { private int[] distance private int row private ArrayList ways = new ArrayList() public Marx(int n,params int[] d) { this.row = n distance = new int[row * row] for (int i = 0 i < row * row i++) { this.distance[i] = d[i]
Platform: | Size: 210319 | Author: wwf | Hits:

[CSharpBusiness

Description: using System using System.Collections.Generic using System.Text using DataAccess using System.Data namespace Business { public class SalesTable { DataOperate temp = new DataOperate(\"server=. uid=sa pwd=sa database=pubs\") public DataTable GetSales() { try { string sql = \"select * from sales\" return temp.GetDataBySql(sql, \"sales\").Tables[\"sales\"] } catch (Exception ex) { throw new Exception(ex.Message) } } } }
Platform: | Size: 7133 | Author: 兜兜 | Hits:

[CSharpRegexT

Description: 使用正则表达式实现数据验证 using System using System.Drawing using System.Collections using System.ComponentModel using System.Windows.Forms using System.Data using System.Text.RegularExpressions namespace RegexT { /// <summary> /// Form1 的摘要说明 #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。
Platform: | Size: 9190 | Author: 000 | Hits:

[Windows Develop征服4.0马端源码

Description: using System; using System.Collections.Generic; using System.Text; namespace NewestCOServer { public class Cryption { class CryptCounter { UInt16 m_Counter = 0; public byte Key2 { get { return (byte)(m_Counter >> 8); } } public byte Key1 { get { return (byte)(m_Counter & 0xFF); } } public void Increment() { m_Counter++; } } private CryptCounter _decryptCounter; private CryptCounter _encryptCounter; private byte[] _cryptKey1; private byte[] _cryptKey2; private byte[] _cryptKey3; private byte[] _cryptKey4; private bool Decrypt2 = false; public Cryption() { _decryptCounter = new CryptCounter(); _encryptCounter = new CryptCounter(); _cryptKey1 = new byte[0x100]; _cryptKey2 = new byte[0x100]; byte i_key1 = 0x9D; byte i_key2 = 0x62; for (int i = 0; i 4 | buffer[i] < 4 | buffer[i] < 4 | buffer[i] << 4); buffer[i] ^= (byte)(_cryptKey4[_decryptCounter.Key2] ^ _cryptKey3[_decryptCounter.Key1]); _decryptCounter.Increment(); } } } public void GenerateKeys(UInt32 CryptoKey, UInt32 AccountID) { UInt32 tmpkey1 = 0, tmpkey2 = 0; tmpkey1 = ((CryptoKey + AccountID) ^ (0x4321)) ^ CryptoKey; tmpkey2 = tmpkey1 * tmpkey1; _cryptKey3 = new byte[256]; _cryptKey4 = new byte[256]; for (int i = 0; i < 256; i++) { int right = ((3 - (i % 4)) * 8); int left = ((i % 4)) * 8 + right; _cryptKey3[i] = (byte)(_cryptKey1[i] ^ tmpkey1 left); _cryptKey4[i] = (byte)(_cryptKey2[i] ^ tmpkey2 left); } Decrypt2 = true; } public void GenerateKeys2(byte[] InKey1, byte[] InKey2) { byte[] addKey1 = new byte[4]; byte[] addKey2 = new byte[4]; byte[] addResult = new byte[4]; //addKey1.i = 0; //addKey2.i = 0; byte[] tempKey = new byte[4]; long LMULer; // InKey1[0] = 0x20; // InKey1[1] = 0x5c; // InKey1[2] = 0x48; // InKey1[3] = 0xf4; // InKey2[0] = 0x00; // InKey2[1] = 0x44; // InKey2[2] = 0xa6; // InKey2[3] = 0x2e; //if (Key3) delete [] Key3; //if (Key4) delete [] Key4; _cryptKey3 = new byte[256]; _cryptKey4 = new byte[256]; for (int x = 0; x < 4; x++) { addKey1[x] = InKey1[3 - x]; addKey2[x] = InKey2[3 - x]; } //cout << "Key1: " << addKey1.i << endl; //cout << "Key2: " << addKey2.i << endl; uint Adder1; uint Adder2; uint Adder3; Adder1 = (uint)((addKey1[3] << 24) | (addKey1[2] << 16) | (addKey1[1] << 8) | (addKey1[0])); Adder2 = (uint)((addKey2[3] << 24) | (addKey2[2] << 16) | (addKey2[1] 8) & 0xff); addResult[2] = (byte)((Adder3 >> 16) & 0xff); addResult[3] = (byte)((Adder3 >> 24) & 0xff); for (int b = 3; b >= 0; b--) { // printf("%.2x ", addResult.c[b]); tempKey[3 - b] = addResult[b]; } tempKey[2] = (byte)(tempKey[2] ^ (byte)0x43); tempKey[3] = (byte)(tempKey[3] ^ (byte)0x21); for (int b = 0; b < 4; b++) { tempKey[b] = (byte)(tempKey[b] ^ InKey1[b]); } //Build the 3rd Key for (int b = 0; b < 256; b++) { _cryptKey3[b] = (byte)(tempKey[3 - (b % 4)] ^ _cryptKey1[b]); } for (int x = 0; x < 4; x++) { addResult[x] = tempKey[3 - x]; } Adder3 = (uint)((addResult[3] << 24) | (addResult[2] << 16) | (addResult[1] << 8) | (addResult[0])); LMULer = Adder3 * Adder3; LMULer = LMULer 32; Adder3 = Convert.ToUInt32(LMULer & 0xffffffff); addResult[0] = (byte)(Adder3 & 0xff); addResult[1] = (byte)((Adder3 >> 8) & 0xff); addResult[2] = (byte)((Adder3 >> 16) & 0xff); addResult[3] = (byte)((Adder3 >> 24) & 0xff); for (int b = 3; b >= 0; b--) { tempKey[3 - b] = addResult[b]; } //Build the 4th Key for (int b = 0; b < 256; b++) { _cryptKey4[b] = Convert.ToByte(tempKey[3 - (b % 4)] ^ _cryptKey2[b]); } Decrypt2 = true; //cout << "Int representation: " << charadd.i << endl; } } }
Platform: | Size: 3638778 | Author: andesion@vip.qq.com | Hits:

[CSharpHashTableDemo

Description: 哈希函数的使用,System.Collections.Hashtable 的例子-hash function, examples System.Collections.Hashtable
Platform: | Size: 32768 | Author: 杨微 | Hits:

[Software EngineeringDijkstra

Description: Dijkstra算法求最短路径(C#版) using System using System.Collections using System.Text namespace Greedy { class Marx { private int[] distance private int row private ArrayList ways = new ArrayList() public Marx(int n,params int[] d) { this.row = n distance = new int[row * row] for (int i = 0 i < row * row i++) { this.distance[i] = d[i] -Dijkstra algorithm for shortest path (C# Version) using System using System.Collections using System.Text namespace Greedy (class Marx (private int [] distance private int row private ArrayList ways = new ArrayList () public Marx (int n, params int [] d) (this.row = n distance = new int [row* row] for (int i = 0 i
Platform: | Size: 209920 | Author: wwf | Hits:

[CSharpRegexT

Description: 使用正则表达式实现数据验证 using System using System.Drawing using System.Collections using System.ComponentModel using System.Windows.Forms using System.Data using System.Text.RegularExpressions namespace RegexT { /// <summary> /// Form1 的摘要说明 #region Windows 窗体设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。-Use regular expressions for data validation using System using System.Drawing using System.Collections using System.ComponentModel using System.Windows.Forms using System.Data using System.Text.RegularExpressions namespace RegexT (/// <summary>///Form1 s a summary of# region Windows Form Designer generated code///<summary>///Designer to support the required method- Do not use a code editor to modify///the contents of this method.
Platform: | Size: 9216 | Author: 000 | Hits:

[Other systemsthe-need-for-a-ticketing-system

Description: ”青鸟影院”开始营业,需要一个售票系统: 使用XML和TreeView显示影院放映列表 使用泛型集合维护有继承关系的电影票对象 座位数可以在系统中指定 点击座位可购买不同类型的电影票 使用简单工厂模式创建不同类型的电影票 使用多态实现不同类型电影票的价格计算 使用接口实现电影票的打印 使用序列化和反序列化实现销售情况的保存和读取 -" Bluebird Theater" start of business,the need for a ticketing system: the use of XML and TreeView cinema list shows the use of generic collections have inherited the maintenance of the relationship between movie ticket object can seat a few clicks in the system designated seating may purchase different types of movie ticket use simple factory pattern to create different types of movie ticket using many different types of state implementation of the movie ticket price movie ticket using the interface of the print using the serialize and implementation of sales of the preservation and read
Platform: | Size: 6802432 | Author: 廖国锐 | Hits:

[Windows DevelopaccessOnlineTest

Description: 可以实现多种功能,可以实现在线测试,在线评分等多种功能-using System using System.Data using System.Configuration using System.Collections using System.Web using System.Web.Security using System.Web.UI using System.Web.UI.WebControls using System.Web.UI.WebControls.WebParts using System.Web.UI.HtmlControls using System.Data.SqlClient
Platform: | Size: 416768 | Author: zhanghuahua | Hits:

[BookslmsWeb

Description: 客户服务登陆界面的图片显示,如果有不清楚地可以直接询问本人-using System using System.Collections.Generic using System.Text using System.Web.UI.WebControls using System.Web.UI.Design using System.Web.UI using System.Collections.Specialized using System.ComponentModel using System.Drawing.Design using System.Web using System.Collections using System.IO namespace LmsWebControl { [ToolboxData("<{0}:BinaryImage runat=server></{0}:BinaryImage>"), Designer(typeof(BinaryImageDesigner)), Description("")] public class BinaryImage : WebControl { private byte[] m_Binary = null private bool m_FixIsDefault = false private string m_FixImageSrc = string.Empty private ImageAlign m_ImageAlign = ImageAlign.NotSet private const string BINARYIMAGEKEY = "BinaryImage" protected override void LoadViewState(object savedState) { object[] o = savedState as object[] List<object> list = o[1] as List<object>
Platform: | Size: 1024 | Author: 刘超 | Hits:

[CSharpHotelManagementSystem

Description: using System using System.Collections.Generic using System.Windows.Forms namespace MyHotel { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles() Application.SetCompatibleTextRenderingDefault(false) Application.Run(new MainForm()) } } }-using System using System.Collections.Generic using System.Windows.Forms namespace MyHotel { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles() Application.SetCompatibleTextRenderingDefault(false) Application.Run(new MainForm()) } } }
Platform: | Size: 1700864 | Author: 朱方亦 | Hits:

[GUI DevelopsuopingruanjCShap

Description: 锁屏软件代码 using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using Microsoft.Win32 namespace 锁屏软件 { public partial class 全屏 : Form { public 全屏(string str) { InitializeComponent() this.textBox2.Text = str this.TopMost =true } private void 全屏_KeyDown(object sender, KeyEventArgs e) { if (e.Alt == true && e.KeyCode == Keys.F4) { e.Handled = true }-Screen lock software code using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using Microsoft.Win32 namespace screen lock software (public partial class full-screen: Form (public full-screen (string str) (InitializeComponent () this.textBox2.Text = str this.TopMost = true ) private void fullscreen _KeyDown (object sender, KeyEventArgs e) ( if (e.Alt == true & & e.KeyCode == Keys.F4) (e.Handled = true )
Platform: | Size: 87040 | Author: loveyue | Hits:

[OtherArcMap

Description: 仿照ArcMap using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using ESRI.ArcGIS.esriSystem using ESRI.ArcGIS.SystemUI using ESRI.ArcGIS.Geometry using ESRI.ArcGIS.Display using ESRI.ArcGIS.Geodatabase using ESRI.ArcGIS.Carto using ESRI.ArcGIS.Controls namespace ArcMap { public partial class frmProperty : Form { public IMapControl2 pMapControl public IEnvelope pEnvelop public frmProperty(IMapControl2 pFMapControl, IEnvelope pFEnvelop) { InitializeComponent() pMapControl = pFMapControl pEnvelop = pFEnvelop } -Modeled ArcMap using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using ESRI.ArcGIS.esriSystem using ESRI.ArcGIS . SystemUI using ESRI.ArcGIS.Geometry using ESRI.ArcGIS.Display using ESRI.ArcGIS.Geodatabase using ESRI.ArcGIS.Carto using ESRI.ArcGIS.Controls namespace ArcMap (public partial class frmProperty: Form (public IMapControl2 pMapControl public IEnvelope pEnvelop public frmProperty (IMapControl2 pFMapControl, IEnvelope pFEnvelop) (InitializeComponent () pMapControl = pFMapControl pEnvelop = pFEnvelop )
Platform: | Size: 79872 | Author: loveyue | Hits:

[Otherbook

Description: Algorithm Collections for Digital Signal Processing Applications using Matlab - E.S. Gopi This contains good number of algorithms that might be useful while designing any digital system using MATLAB-Algorithm Collections for Digital Signal Processing Applications using Matlab- E.S. Gopi This contains good number of algorithms that might be useful while designing any digital system using MATLAB
Platform: | Size: 3574784 | Author: Anoop | Hits:

[WEB Code73105414news_find_for_dotnet

Description: using System using System.Collections using System.Collections.Generic using System.Text using System.Data using System.Data.SqlClient using System.Xml using System.Net using System.Text.RegularExpressions
Platform: | Size: 73728 | Author: agod | Hits:

[Search Enginemahout-0.3

Description: mahout是一个开源的软件包,对搜索引擎的聚类,分类算法以及推荐系统算法的代码实现-mahout is an open source software package, the search engine clustering, classification and recommendation system algorithm algorithms code
Platform: | Size: 54227968 | Author: zhaoln | Hits:

[Windows Developc

Description: 一旦我们创建了上面的asmx文件,进行编译后,我们就可以编写客户端的代码来进行调用这个Web Services了。 我们先“添加Web引用”,输入:http://localhost/aspxWebCS/GetBinaryFile.asmx。下面,我们编写显示文件的中间文件:GetBinaryFileShow.aspx,这里,我们只需要在后代码里编写代码即可,GetBinaryFileShow.aspx.cs文件内容如下:-using System using System.Collections using System.ComponentModel using System.Data using System.Drawing using System.Web using System.Web.SessionState using System.Web.UI
Platform: | Size: 1024 | Author: fengyeats | Hits:

[CSharpWindowsFormsApplication1

Description: using System using System.Collections.Generic using System.Linq using System.Text using System.Windows using System.Windows.Controls using System.Windows.Data using System.Windows.Documents using System.Windows.Input using System.Windows.Media using System.Windows.Media.Imaging using System.Windows.Navigation using System.Windows.Shapes namespace Test_1 { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 : Window { public Window1() { InitializeComponent() } private void Tamam_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Naber La " + giris.Text) } } } -using System using System.Collections.Generic using System.Linq using System.Text using System.Windows using System.Windows.Controls using System.Windows.Data using System.Windows.Documents using System.Windows.Input using System.Windows.Media using System.Windows.Media.Imaging using System.Windows.Navigation using System.Windows.Shapes namespace Test_1 { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 : Window { public Window1() { InitializeComponent() } private void Tamam_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Naber La " + giris.Text) } } }
Platform: | Size: 31744 | Author: nyoo | Hits:

[CSharpaabb

Description: C#程序设计 一、实验名称:C#实验 二、实验目的:通过上机实际操作将平时课堂所学具体实现,通过该实验来检查自己的学习成功,并且发现平时学习中没有注意到的问题并解决之,从而加深对该门课程的以及C#语言的了解。 三、实验步骤: 实验一:C#编程环境 实验目的: 1. 熟悉掌握C#开发环境的安装与配置 2. 熟悉开发环境,编写控制台和窗口两个版本的hello world范例程序-using System using System.Collections.Generic using System.Text namespace hello_world { class SY1_2 { static void Main(string[] args) { Console.WriteLine("Hello World!") } } }
Platform: | Size: 14336 | Author: 张军 | Hits:
« 12 3 4 5 »

CodeBus www.codebus.net