public int active(){ int ret; dictTable m_dictTable = new DictTable(tableNum(Dbwork)); dictField m_dictField; int i; ; for (i =1 ;i <=m_dictTable.fiel...
分类:
其他好文 时间:
2015-07-16 19:37:30
阅读次数:
138
1.为什么有存储过程(procedure)还需要(Function) fun可以再select语句中直接调用,存储过程是不行的。 一般来说,过程显示的业务更为复杂;函数比较有针对性。create function funadd(@i int,@y int)returns intasbegin ret...
分类:
数据库 时间:
2015-07-16 13:25:48
阅读次数:
184
mystring operator +(const char *str, const mystring &it){ mystring stro; strcpy(stro.s, str); strcat(stro.s, it.s); printf("stro = %p\n", stro.s); ret...
分类:
其他好文 时间:
2015-07-16 02:01:33
阅读次数:
89
去除字符串重复项:declare @str varchar(8000)declare @ret varchar(8000),@return varchar(8000)select @str = 'APR-11,APR12,APR06,APR-11,APR12,APR06'select @str = ...
分类:
数据库 时间:
2015-07-15 20:39:12
阅读次数:
159
function getWeekRange($date){ $ret=array(); $timestamp=strtotime($date); $w=strftime('%u',$timestamp); $ret['sdate']=date('Y-m-d 00:00:00',$timestamp-...
分类:
Web程序 时间:
2015-07-14 20:17:19
阅读次数:
129
1.下面这段代码运行的结果是什么?#include #include DWORD dz=0;DWORD dz1=0;void fun1(){ __asm { mov eax, dz push eax ret }}void main(){ HMODULE h = Ge...
分类:
编程语言 时间:
2015-07-14 17:17:15
阅读次数:
120
文章转自:http://www.cnblogs.com/zfc2201/archive/2012/12/16/2820335.htmlJS String类拓展方法: 1 //获取字符数组 2 String.prototype.toCharArray = function() { 3 ret...
分类:
Web程序 时间:
2015-07-13 20:20:45
阅读次数:
141
1. 场景:(1)在controller的文件中有语句echo json_encode($ret); 位置1(2)在显示页面test.html中,有如下代码:function doSubmit(obj){objTable = obj.parentNode.parentNode.parentNode....
分类:
Web程序 时间:
2015-07-13 15:59:15
阅读次数:
136
简单线段树hdu1166 1 #include 2 #define lson l,m,rt m)43 ret += Query(L,R,rson);44 else if(m >= R)45 ret += Query(L,R,lson);46 else4...
分类:
其他好文 时间:
2015-07-13 15:30:13
阅读次数:
91
//a^n的结果对MOD取余const int MOD=10003;int PowMOD(int a,int n){ int ret=1; a%=MOD; while(n){ if(n&1){ ret =(ret*a)%MOD; }...
分类:
其他好文 时间:
2015-07-13 11:34:17
阅读次数:
94