06 2012 档案

摘要:declare @ids varchar(max)set @ids=''select @ids=@ids+','+convert(varchar(10),product_id) from tblProduct where PublishToWeb=1select @ids 阅读全文
posted @ 2012-06-19 10:45 fannet
摘要:满二叉树,i=0为根节点(i-1)/2 为父节点2i+1 为左孩子,2I+2 为右孩子深度为k的满二叉树,需要2k-1长度的数组存储 阅读全文
posted @ 2012-06-11 00:42 fannet
摘要:System.ArgumentNullException : A type specific Set(position, val) should be called because the Type can not be guessed from a null value.出现此异常时需要为参数值为null时指定类型。query.SetParameter(position, null, NHibernateUtil.Int32); 阅读全文
posted @ 2012-06-06 10:58 fannet
摘要:O(1) 常数阶 < O(logn) 对数阶 < O(n) 线性阶 < O(nlogn) < O(n^2) 平方阶 < O(n^3) <{O(2^n) < O(n!) < O(n^n)}排序算法n^2冒泡(稳定)nlog(n)堆排序(不稳定),归并(稳定),快速(不稳定),希尔(不稳定)字符串匹配普通算法O(m*n)kmp O(m+n) 阅读全文
posted @ 2012-06-04 00:36 fannet
摘要:1. visual studio 中编写c时,需要把变量声明在赋值语句的前端,否则会出现syntax error : missing ';' before 'type' 错误。2.在字串操作时出现乱码需注意对'\0'的使用。3. char *s="this is a string"; 是个静态字串其中的字符不可修改,否则会报Access violation writing location 错误 阅读全文
posted @ 2012-06-01 00:53 fannet