/* * 作者: 冷却 * 时间: 2009年2月21日 * E-mail: leng_que@yahoo.com.cn * 描述: 演示几种用C语言来执行shellcode(其实也就是机器码)的方式 * 备注:在WindowsXP SP3下测试成功 */ //一段打开Windows计算器(calc ...
分类:
系统相关 时间:
2020-07-15 23:57:19
阅读次数:
104
测试项目已上传到码云,可以下载:https://gitee.com/yangxioahui/aopdemo.git 具体如下: public interface Calc { Integer add(int num1,int num2); }//目标是对add 方法进行切入 @Component p ...
分类:
其他好文 时间:
2020-07-08 13:07:10
阅读次数:
52
再f11全屏时,会出现页面抖动得问题,是由于css盒子高度问题引起的,解决方法如下: html { overflow-x: hidden; overflow-y: auto;}body { width: 100vw; overflow: hidden; padding-right: calc(100 ...
分类:
其他好文 时间:
2020-07-07 09:56:59
阅读次数:
94
calc()使用通用的数学运算规则,但是也提供更智能的功能: >使用“+”、“-”、“*” 和 “/”四则运算; >可以使用百分比、px、em、rem等单位; >可以混合使用各种单位进行计算; >表达式中有“+”和“-”时,其前后必须要有空格,如"widht: calc(12%+5em)"这种没有空 ...
分类:
Web程序 时间:
2020-07-03 10:25:35
阅读次数:
179
请编写一个函数(允许增加子函数),计算n x m的棋盘格子(n为横向的格子数,m为竖向的格子数)沿着各自边缘线从左上角走到右下角,总共有多少种走法,要求不能走回头路,即:只能往右和往下走,不能往左和往上走。 private static void calc(int row, int col) { i ...
分类:
其他好文 时间:
2020-07-02 09:30:01
阅读次数:
57
int prime[maxn], prime_tot; int is_prime[maxn]; int mu[maxn]; void pre_calc(int lim) { mu[1] = 1; for (int i = 2; i <= lim; i++) { if (!is_prime[i]) { ...
分类:
其他好文 时间:
2020-06-30 20:43:31
阅读次数:
49
Go 语言推荐测试文件和源代码文件放在一块,测试文件以 _test.go 结尾。比如,当前 package 有 calc.go 一个文件,我们想测试 calc.go 中的 Add 和 Mul 函数,那么应该新建 calc_test.go 作为测试文件。 example/ |--calc.go |-- ...
分类:
其他好文 时间:
2020-06-29 00:02:11
阅读次数:
86
def calc(n): print(n) if int(n / 2) == 0: # 10/2 5/2 2/2 return n res=calc(int(n / 2)) return res calc(10) ####打印结果 10 5 2 1 ######################### ...
分类:
编程语言 时间:
2020-06-28 00:22:12
阅读次数:
96
1.函数原型对象 Function 的使用 <!--将字符串转换成可执行的代码--> 小朋友,请输入简单计算 <input type="text" id="calc"/> <input type="button" value="计算" onclick="calc()"/> 结果:<span id=" ...
分类:
编程语言 时间:
2020-06-27 14:42:16
阅读次数:
68
指数型枚举: 无个数限制 题目描述: 从 1~n 这 n 个整数中随机选取任意多个,输出所有可能的选择方案。 朴素dfs枚举 int n; vector<int> ans; void calc(int x) { if(x == n + 1) { for(auto c: ans) printf("%d ...
分类:
其他好文 时间:
2020-06-27 13:18:24
阅读次数:
49