源程序: #include <iostream>using namespace std;int main(){ const int x = 5, y = 6; const int *p = &x; p = const_cast<int *>(&y); cout << *p << endl; syst ...
分类:
其他好文 时间:
2020-02-06 14:19:00
阅读次数:
66
拷贝到单独目录中,新增bat文件,执行 @echo off java -Xms256m -Xmx2048m -jar F:\app\web\maintain\maintain-0.0.1-SNAPSHOT.jar pause ...
分类:
其他好文 时间:
2020-02-05 23:16:29
阅读次数:
75
源程序: #include <iostream>using namespace std; class Bas{public: ~Bas() { cout << "Bas析构函数" << endl; } virtual void f() = 0;}; class Dev :public Bas{pub ...
分类:
其他好文 时间:
2020-02-04 23:19:53
阅读次数:
83
一、防抖动,平滑策略 利用历史记录与当前定位信息,来确定图层标记的位置,以防止抖动 评分方案: //权重分配 public static float[] EARTH_WEIGHT = {0.1f,0.2f,0.4f,0.6f,0.8f}; 历史位置与当前定位结合: //评分 for (int i = ...
分类:
移动开发 时间:
2020-02-03 16:15:45
阅读次数:
96
dubbo需要zookeeper来提供服务注册中心,下面来说zookepper的安装 https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/ 1.下载zookeeper,这里使用的是清华的镜像 注意要下载带bin的文件,否则可能是缺少lib文件夹 ...
分类:
其他好文 时间:
2020-02-03 14:13:39
阅读次数:
66
原文地址:https://github.com/lasting-yang/frida_hook_libartfrida -U --no-pause -f package_name -l hook_RegisterNatives.js var ishook_libart = false; functi ...
分类:
其他好文 时间:
2020-01-29 15:46:41
阅读次数:
694
正确代码如下:#include<iostream> #include<string> #include<map> using namespace std; /*仿函数的应用*/ typedef struct tagStudentinfo { int niD; string strName; }Stu ...
分类:
其他好文 时间:
2020-01-28 23:22:04
阅读次数:
253
首先看代码: #include<stdio.h> #include<stdlib.h> int main(void) { int a = 5; int b = a << 32; printf("%d\n", b); system("pause"); return 0; } 对数值a进行左移32位,会 ...
分类:
其他好文 时间:
2020-01-27 15:41:14
阅读次数:
330
环境说明: 引擎版本:5.2.4 Egret Wing 4.1.6 1.下载依赖,下载地址https://github.com/egret-labs/egret-game-library/tree/master/tiled 2.新建一个游戏项目Tank 3.将上面包含tiled库的libsrc文件夹 ...
分类:
其他好文 时间:
2020-01-26 11:43:44
阅读次数:
345
1) 意图 将一个请求封装为一个对象,从而使得可以用不同的请求对客户进行参数化;可以对请求排队或记录日志,以及撤销的操作 2) 结构 其中 Command 声明执行操作的接口 ConcreteCommand 将一个接受者对象绑定于一个动作 Client创建一个具体命令对象并设定它的接受者 Invok ...
分类:
编程语言 时间:
2020-01-26 10:32:26
阅读次数:
80