valgrind是很好的检查内存泄漏的工具 使用命令: $ valgrind --tool=memcheck --log-file=/root/valgrind_log_all --leak-check=full --error-limit=no --show-reachable=yes --tra ...
分类:
其他好文 时间:
2021-02-19 13:36:36
阅读次数:
0
JWT全称JSON Web Token,是一个紧凑的,自包含的,安全的信息交换协议。JWT有很多方面的应用,例如权限认证,信息交换等。本文将简单介绍JWT登录权限认证的一个实例操作。 JWT组成 JWT由头部(Header),负载(Payload)和签名(Signature)三部分组成。其中头部包含 ...
分类:
其他好文 时间:
2021-02-17 14:45:22
阅读次数:
0
一眼二分。 注意点: 在读入n之后要使用getchar接收后面的换行符,否则会使for循环内的getline读入这个换行符,导致第一个字符串读取错误。 最后输出答案前要先check一遍 const int N=110; string a[N]; string suffix; int n; bool ...
分类:
其他好文 时间:
2021-02-17 14:18:36
阅读次数:
0
试除法求约数。 int check(int n) { int res=1; for(int i=2;i*i<=n;i++) if(n % i == 0) { res+=i; if(i != n/i) res+=n/i; } return res; } int main() { vector<int> ...
分类:
其他好文 时间:
2021-02-17 14:12:57
阅读次数:
0
工作区: 就是git仓库的目录就属于工作区 [root@node4 git]# pwd/git[root@node4 git]# lsreadme.txt[root@node4 git]# ls -a. .. .git readme.txt[root@node4 git]# cd .git/[roo ...
分类:
其他好文 时间:
2021-02-16 12:34:56
阅读次数:
0
要使用ShowPane,而不要使用普通的ShowWindow void CMainFrame::OnViewPropWnd() { // TODO: 在此添加命令处理程序代码 if (!m_wndProperties.IsVisible()) m_wndProperties.ShowPane(TRU ...
分类:
其他好文 时间:
2021-02-16 12:16:01
阅读次数:
0
1.首先这个程序在运行时创建了许多链表。 37x37的矩阵列表 2.check输入的长度是否为37 3.然后创建一个操作的链表,把37x37的矩阵和输入做矩阵乘法,组后得到的结果对25927求余。 4.最后把output2和一个数组进行比较。 sage脚本: res = [12586, 18694, ...
分类:
其他好文 时间:
2021-02-15 12:18:29
阅读次数:
0
1.重命名 git branch -m oldBranchName newBranchName 2.删除远程分支:git push origin :oldBranchName 3.将重命名过的分支提交:git push origin newBranchName 4.新建分支 : git branch ...
分类:
其他好文 时间:
2021-02-15 12:07:38
阅读次数:
0
### 新建vue项目 npm install @vue/cli -g // 如果安装过脚手架,不必再次安装 vue create vision 手动选择一些特性 > Manually select features 空格选择一些插件 Check the features needed for yo ...
分类:
其他好文 时间:
2021-02-09 11:46:36
阅读次数:
0
构建条件方法 @Override public Query getQuery(ReportParam param){ //check MeenoAssert.hasLength(param.getUuid(),"uuid can not empty!"); MeenoAssert.notNull(p ...
分类:
其他好文 时间:
2021-02-08 12:27:48
阅读次数:
0