摘要:        
散列表(Hash table,也叫哈希表),是根据关键码值(Key value)而直接进行访问的数据结构。也就是说,它通过把关键码值映射到表中一个位置来访问记录,以加快查找的速度。这个映射函数叫做散列函数,存放记录的数组叫做散列表。 基本概念 若结构中存在关键字和K相等的记录,则必定在f(K)的存储位置上。由此,不需比较便可直接取得所查记录。称这个对应关...    阅读全文
posted @ 2010-12-14 21:55
BuildNewApp
阅读(1226)
评论(0)
推荐(0)
        
            
        
        
摘要:        
53、实现拖放操作 this.richTextBox1.AllowDrop=true; privatevoidrichTextBox1_DragDrop(objectsender,System.Windows.Forms.DragEventArgse) { ...    阅读全文
posted @ 2010-12-14 16:13
BuildNewApp
阅读(269)
评论(0)
推荐(0)
        
            
        
        
摘要:        
50、自画ListBox privateBrush[]listBoxBrushes ; //该数组用来存储绘制listBox1背景的Brush对象 privateint[]listBoxHeights=newint[]{50,25,33,15,20} ; //该数组用来存储listBox...    阅读全文
posted @ 2010-12-14 15:34
BuildNewApp
阅读(257)
评论(0)
推荐(0)
        
            
        
        
摘要:        
47、监视剪贴板 [System.Runtime.InteropServices.DllImport("user32")] privatestaticexternIntPtrSetClipboardViewer(IntPtrhwnd); [System.Runtime.Interop...    阅读全文
posted @ 2010-12-14 15:28
BuildNewApp
阅读(247)
评论(0)
推荐(0)
        
            
        
        
摘要:        
43、修改系统的右键菜单 if(args.Length>0) { Console.Write(args[0]); Console.Read(); } else ...    阅读全文
posted @ 2010-12-14 15:12
BuildNewApp
阅读(263)
评论(0)
推荐(0)
        
            
        
        
摘要:        
如何在C语言中隐藏默认的DOS窗口(Windows下)?看这个问题问的人比较多,而网上的答案不尽人意,就自己写个,放变大家!#include<iostream>usingnamespacestd;intmain(){cout<<"Hello world!"<<endl;return0;}方法一:在你的控制台程序前加入#ifdef_MSC_VER#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"    阅读全文
posted @ 2010-12-14 14:35
BuildNewApp
阅读(6822)
评论(0)
推荐(0)
        
            
        
        
摘要:        
38、获取系统中可用的驱动器列表和系统磁盘图标 [StructLayout(LayoutKind.Sequential)] publicstructSHFILEINFO { publicIntPtrhIcon; publicintiIcon; ...    阅读全文
posted @ 2010-12-14 14:03
BuildNewApp
阅读(289)
评论(0)
推荐(0)
        
            
        
        
摘要:        
35、读写ini文件 [DllImport("kernel32")] privatestaticexternintGetPrivateProfileInt(stringlpApplicationName,stringlpKeyName,intnDefault,stringlpFileName); ...    阅读全文
posted @ 2010-12-14 11:36
BuildNewApp
阅读(310)
评论(0)
推荐(0)
        
            
        
        
摘要:        
32、基本序列化 [Serializable] publicclassMyObject { publicintn1=0; publicintn2=0; publicStringstr=null; } classClass1 { ...    阅读全文
posted @ 2010-12-14 11:30
BuildNewApp
阅读(235)
评论(0)
推荐(0)
        
            
        
        
摘要:        
28、创建线性梯度 privatevoidForm1_Paint(objectsender,System.Windows.Forms.PaintEventArgse) { LinearGradientBrushlinGrBrush=newLinearGradientBrush( ...    阅读全文
posted @ 2010-12-14 10:47
BuildNewApp
阅读(353)
评论(0)
推荐(0)
        
            
        
        
摘要:        
24、-在一个区域中剪辑 privatevoidForm1_Paint(objectsender,System.Windows.Forms.PaintEventArgse) { // Create a path that consists of a single polygon. ...    阅读全文
posted @ 2010-12-14 10:38
BuildNewApp
阅读(497)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号