上一页 1 ··· 113 114 115 116 117 118 119 120 121 ··· 329 下一页
摘要: //调整权限VOID DebugPrivilege(){ HANDLE hToken = NULL; BOOL bRet =OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &hToken); if ( bRet == TRUE ) { TOKEN_PRIVILEGES tp; tp.PrivilegeCount = 1;LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &tp.Privileges[0].Luid); tp.Privileges[0].Attributes= SE_ 阅读全文
posted @ 2013-07-15 22:30 jlins 阅读(255) 评论(0) 推荐(0)
摘要: oracle触发器中增删改查本表 (1)只有before insert触发器中才可以查询或更新本表 create or replace trigger tri_test_ins before insert on test for each row declare v_cnt integer; begin select count(*) into v_cnt from test; dbms_output.put_line('test count:'||to_char(v_cnt)); update test set a9='99'; end; 执行insert后, 阅读全文
posted @ 2013-07-15 22:28 jlins 阅读(1141) 评论(0) 推荐(0)
摘要: 题目地址:http://poj.org/problem?id=2773 因为k可能大于m,利用gcd(m+k,m)=gcd(k,m)=gcd(m,k)的性质,最后可以转化为计算在[1,m]范围内的个数t。 1、AC代码:开始的时候从1开始枚举if(gcd(n,i)==1),果断跑了2000ms #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inclu.. 阅读全文
posted @ 2013-07-15 22:26 jlins 阅读(211) 评论(0) 推荐(0)
摘要: 适用条件:1、可以上网的安卓系统2.2以上的智能手机,或有便携式wifi功能的安卓智能手机2、有无线网卡的笔记本电脑或台式机(特别是XP系统)测试手机:中兴U930电脑:华硕K50系列笔记本 现在的Android智能手机都是一个相当实用的wifi热点工具,如果在笔记本电脑没有网络的情况下,可以启用手机的wifi网络供电脑使用的(使用的是手机的数据网络,包流量的那种),让你随时随时畅游网络世界。今天就给大家分享一下手机便携式wifi热点的使用方法,就算不使用手机的网络,当忘记带数据线时也可以通过手机的wifi与电脑(特别是XP系统,因为该系统不能虚拟wifi,而Windows7可以)组成无线局域 阅读全文
posted @ 2013-07-15 22:24 jlins 阅读(1931) 评论(0) 推荐(0)
摘要: 问题 G:Find the minimum时间限制:2 Sec 内存限制:128 MB 提交:83 解决:20 [ 提交][ 状态][ 讨论版] 题目描述Given an integer array of size N, we define two kind of operators: 1. Add(L,R,W) : adding an integer W to every element in subarray[L,R]; 2. Min(L,R) : returning the minimum number in subarray[L,R]. Note. L and R a... 阅读全文
posted @ 2013-07-15 22:22 jlins 阅读(214) 评论(0) 推荐(0)
摘要: 最近需要将一个32位的程序移植到64位上,由于原来是使用vs2003写的,vs2003本身并不支持编译64位系统上,只能升级到vs2005以上版本。个人还是比较喜欢vs2005,对c++来说,vs2005的功能基本上已经够用了。基本步骤如下:接下来只要重新编译即可,当然代码可能需要修改,例如OnTimer(UINT nIDEvent)需要改成OnTimer(UINT_PTR nIDEvent)等等。接下来徐泽活动解决方案平台为x64,即可编译64位可执行文件。 阅读全文
posted @ 2013-07-15 22:18 jlins 阅读(368) 评论(0) 推荐(0)
摘要: function ajaxGetMenuList(){ $.getJSON("login.do", function(json){ var r = ""; zNodes += "["; $(json.menuList).each(function(i){ r = json.menuList[i]; if(i>0) zNodes += ","; zNodes += '{'; zNodes += 'id:'+r.SId; zNodes += ', pId... 阅读全文
posted @ 2013-07-15 22:14 jlins 阅读(1090) 评论(0) 推荐(0)
摘要: 在百度首页输入任意关键词搜索之后,我们跳转到搜索结果页面,在浏览器的网址栏我们可以看到很长的一串url地址。那么,你真的了解这一串url的含义吗?s?:搜索百度搜索结果页使用了重定向,因此我们看到的不是search.php?这样的url格式wd:当前搜索的关键词即输入的关键词的urlencode字符串,编码格式为gbk或者utf-8,默认编码格式为utf-8。用于作为搜索原料,百度还会经过分词、判类等操作,不是直接检索数据库,这个会在后面的破译百度系列当中详细讲解。bs:上一次搜索的关键词内容格式与当前搜索的关键词一致。用于记录用户的搜索行为,记录该值被用于相关关键词统计、同义词分析等操作。. 阅读全文
posted @ 2013-07-15 22:13 jlins 阅读(1215) 评论(0) 推荐(0)
摘要: 很久以前做过此类问题..就因为太久了..这题想了很久想不出..卡在推出等比的求和公式,有除法运算,无法快速幂取模...看到了http://blog.csdn.net/yangshuolll/article/details/9247759才想起等比数列的快速幂取模....求等比为k的等比数列之和T[n]..当n为偶数..T[n] = T[n/2] + pow(k,n/2) * T[n/2] n为奇数...T[n] = T[n/2] + pow(k,n/2) * T[n/2] + 等比数列第n个数的值 比如 1+2+4+8 = (1+2) ... 阅读全文
posted @ 2013-07-15 22:12 jlins 阅读(522) 评论(0) 推荐(0)
摘要: www.google.com 【http://www.google.cn/search?q=112&hl=zh-CN&client=aff- 360daohang&hs=yhE&affdom=360.cn&newwindow=1&start=10& amp;sa=N】 q–查询的关键词(Query),百度对应的参数为wd hl–Google搜索的界面语言(Interface Language) start–显示结果的页数,百度对应的参数为pn(0是首页,10是第二页,以此类推) lr–搜索内容的语言限定(Language Rest 阅读全文
posted @ 2013-07-15 22:10 jlins 阅读(1623) 评论(0) 推荐(0)
上一页 1 ··· 113 114 115 116 117 118 119 120 121 ··· 329 下一页