/// /// 绘制任意间距文字/// /// 文本 /// 绘图对象 /// 起始位置 /// 字体 /// 画刷 /// 间距 private void DrawStringEx(string text, Graphics g, PointF startPoint, Font fon...
分类:
其他好文 时间:
2014-09-30 23:36:00
阅读次数:
163
#include
/* 插入排序
基本思想:将记录插入到已排序好的有序表中
特点:一种稳定的排序方法,时间复杂度O(n^2)
*/
void InsertSort(int array[],int len){
int i,j;
int temp;...
分类:
其他好文 时间:
2014-09-30 23:23:10
阅读次数:
196
public void AsyncWriteDataBase() { var spName = ""; while (true) { try { ...
分类:
数据库 时间:
2014-09-30 23:16:20
阅读次数:
202
1,利用combobox创建色带,首先draw private void comboBox1_DrawItem(object sender, DrawItemEventArgs e) { Rectangle rec= e.Bounds; rec.Width = rec.Width /array.Le...
分类:
其他好文 时间:
2014-09-30 22:51:30
阅读次数:
311
代码:可任选一套方法进行显示和隐藏,如果决定有动画的那套,那么一开始初始化时就必须用set方法进行控制-(void) setBar{ UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemIte...
分类:
其他好文 时间:
2014-09-30 21:28:10
阅读次数:
219
因为jsp最后会转换成servlet,这就有可能会覆盖init和destory方法,但是在tomcat 6.0.29,如果要覆写的话,如下: ?<%!
????//覆盖jspInit方法
????public?void?jspInit(){
????
????Servlet...
分类:
Web程序 时间:
2014-09-30 20:26:51
阅读次数:
402
protected void Button1_Click(object sender, EventArgs e) { /// ///备份方法 /// SqlConnection conn = new SqlConnection("Server=.; Database=aaaa; User ...
分类:
数据库 时间:
2014-09-30 19:52:09
阅读次数:
190
Android 下面没有 execinfo.h, 就不能用在 glibc下打印 back trace 方法了。
glic 下打印 back trace 参见:http://blog.csdn.net/span76/article/details/11927551
我写了下面的方法,供参考:
#include
#include
static void pnpDumpNativeS...
分类:
移动开发 时间:
2014-09-30 19:33:39
阅读次数:
252
dlopen基本定义 功能:打开一个动态链接库 包含头文件: #include 函数定义: void * dlopen( const char * pathname, int mode ); 函数描述: 在dlopen的()函数以指定模式打开指定的动态连接库文件,并返回一个句柄给调用...
分类:
系统相关 时间:
2014-09-30 18:57:59
阅读次数:
214
using System;using System.Collections.Generic;public class Example{ public static void Main() { //一、创建泛型哈希表,然后加入元素 ...
分类:
其他好文 时间:
2014-09-30 18:45:49
阅读次数:
351