会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
HarlanC
生有涯,知无涯。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
下一页
2016年3月3日
VB 中 NumericUpDown 控件 如何为手动输入设定触发事件
摘要: VB 中没有inputTextChanged 的类似事件,只能通过Key事件来捕获手动输入数字的事件,然后用一个赋值操作来触发 valueChanged事件,在valueChanged事件中进行相关操作。
阅读全文
posted @ 2016-03-03 11:23 HarlanC
阅读(607)
评论(0)
推荐(0)
2016年2月26日
用 正则表达式 限定XML simpleType 定义
摘要: <xsd:simpleType name="ResTrictions"> <xsd:restriction base="xsd:string"> <xsd:pattern value="\s*0x[0-9,a-z,A-Z]{8}\s*|\s*"/> </xsd:restriction> </xsd:
阅读全文
posted @ 2016-02-26 16:26 HarlanC
阅读(222)
评论(0)
推荐(0)
2016年2月25日
XML Schema choice 元素
摘要: XML Schema choice 元素
阅读全文
posted @ 2016-02-25 13:28 HarlanC
阅读(305)
评论(0)
推荐(0)
2016年1月31日
面试题-Stack的最小值o(1)
摘要: 1 // Stack.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include 6 using namespace std; 7 8 template 9 struct Stack 10 { 11 private: 12 Type *_stack; 13 int _top; 14 int _min; 15 ...
阅读全文
posted @ 2016-01-31 11:16 HarlanC
阅读(250)
评论(0)
推荐(0)
面试题 -二元查找树转变成排序的双向链表
摘要: 参考: http://blog.csdn.net/anialy/article/details/7645535
阅读全文
posted @ 2016-01-31 10:10 HarlanC
阅读(189)
评论(0)
推荐(0)
2016年1月30日
算法-最大子序列和
摘要: 最大子序列和的问题,数据结构与算法一书分析中给出了四种算法,最优的算法的时间复杂度为O(N), 算法的正确性分析没有给出过程,分析过程如下: 此算法将整个数组序列分成了不同的子序列,子序列有如下规则 若子序列只有一个元素,那么此元素的值必定为负数 若元素个数n>1,那么第一个元素值sub_array
阅读全文
posted @ 2016-01-30 13:37 HarlanC
阅读(394)
评论(0)
推荐(0)
2016年1月27日
面试题-链表反转c实现
摘要: // ListReverse.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <malloc.h>#include <iostream>using namespace st
阅读全文
posted @ 2016-01-27 09:29 HarlanC
阅读(280)
评论(0)
推荐(0)
2016年1月24日
Linux 多线程编程—使用条件变量实现循环打印
摘要: 编写一个程序,开启3个线程,这3个线程的ID分别为A、B、C,每个线程将自己的ID在屏幕上打印10遍,要求输出结果必须按ABC的顺序显示;如:ABCABC….依次递推。 使用条件变量来实现:
阅读全文
posted @ 2016-01-24 17:58 HarlanC
阅读(744)
评论(0)
推荐(1)
Linux 多线程编程 实例 1
摘要: 子线程循环 10 次,接着主线程循环 100 次,接着又回到子线程循环 10 次,接着再回到主线程又循环 100 次,如此循环50次,试写出代码。 #include <pthread.h>#include <stdio.h>#include <unistd.h> static pthread_mut
阅读全文
posted @ 2016-01-24 17:55 HarlanC
阅读(423)
评论(1)
推荐(0)
2015年12月15日
机器学习实战-边学边读python代码(5)
摘要: def classifyNB(vec2Classify, p0Vec, p1Vec, pClass1): p1 = sum(vec2Classify * p1Vec) + log(pClass1) p0 = sum(vec2Classify * p0Vec) + log(1.0 - pClass1)
阅读全文
posted @ 2015-12-15 20:40 HarlanC
阅读(292)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
下一页
公告