主要问题是math.h这个头文件虽然在/lib/include下有定义,但是该文件内并没有sqrt()的定义。解决的办法是;在编译的时候在后面加上-lm,意思是链接到math函数库。在gcc下用到数学函数,如sqrt。在gcc时要加上-lm参数,这样告诉编译器我要用到数学函数了 。如:gcc a.c...
分类:
其他好文 时间:
2014-06-18 18:26:23
阅读次数:
175
查询及删除重复记录的SQL语句1、查找表中多余的重复记录,重复记录是根据单个字段(Id)来判断select * from 表 where Id in (select Id from 表 group by Id having count(Id) > 1)2、删除表中多余的重复记录,重复记录是根据单个字...
分类:
数据库 时间:
2014-06-18 17:09:56
阅读次数:
241
题意:给定一个整数序列 问 只允许相邻的两个数交换 至少需要交换多少次思路:归并排序#include __int64 count;int array[500001],temp[500001]; void merge(int array[],int p,int q,int r) ///// p < ....
分类:
其他好文 时间:
2014-06-18 14:41:06
阅读次数:
197
Cache类,是一个用于缓存常用信息的类。HttpRuntime.Cache以及HttpContext.Current.Cache都是该类的实例。一、属性属性说明Count获取存储在缓存中的项数。EffectivePercentagePhysicalMemoryLimit获取在 ASP.NET .....
分类:
Web程序 时间:
2014-06-18 13:40:24
阅读次数:
266
锐浪 报表, 交叉报表中 对交叉字段,做条件改变背景颜色 .var fieldCount = Report.RunningDetailGrid.ColumnContent.ContentCells.Count; // 总字段列数var lockFieldCount = Report.Detai...
分类:
其他好文 时间:
2014-06-18 10:26:47
阅读次数:
570
// Playground - noun: a place where people can playimport Cocoavar nums = Int[]()for _ in 1...50{ nums.append(random())}nums////冒泡排序/*var count = 0...
分类:
移动开发 时间:
2014-06-18 09:57:23
阅读次数:
303
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleDaoImpl': Injection of resou...
分类:
移动开发 时间:
2014-06-18 00:10:10
阅读次数:
923
1、Oracle中的SQL select count(1)from a_V_PWYZL_CUSTACCT_PSMIS t where not exists (select 1 from tb_show_multi_question q WHERE q.dqmp_rule_code = '仅比对系统有...
分类:
数据库 时间:
2014-06-17 23:29:32
阅读次数:
309
知识关键词:DATE_FORMAT
select DATE_FORMAT(create_time,'%Y%u') weeks,count(caseid) count from tc_case group by weeks;
select DATE_FORMAT(create_time,'%Y%m%d') days,count(caseid) count from tc_case ...
分类:
数据库 时间:
2014-06-17 16:17:54
阅读次数:
247
打开你的工程,点击目录的工程文件,最顶端蓝色的,然后选择project下你的工程,还是蓝色那项,然后build Settings,然后往下拉,在Apple LLVM 5.0 - Language - Objective C 里有一个选项,Objective-C Automatic Reference...
分类:
其他好文 时间:
2014-06-17 15:53:20
阅读次数:
206