一、bit_xor 1、头文件 #include <functional> 2、模板 template <class T> struct bit_xor; template <class T = void> struct bit_xor; 3、返回两个参数按位XOR的结果(公共成员函数) 4、使用 ...
分类:
其他好文 时间:
2021-04-20 15:10:43
阅读次数:
0
#堆排序 通过将无序表转化为堆,可以直接找到表中最大值或者最小值,然后将其提取出来,令剩余的记录再重建一个堆, 取出次大值或者次小值,如此反复执行就可以得到一个有序序列,此过程为堆排序。 思路: 1.创建一个堆 H[0……n-1]; 2.把堆首(最大值)和堆尾互换; 3.把堆的尺寸缩小 1,并调用 ...
分类:
编程语言 时间:
2021-04-20 14:08:43
阅读次数:
0
在配置Jenkins的源码管理的时候,遇上了这个错 Host key verification failed。 就是下图这里 图片是已经修正后的,报错的原因是说没有权限。 一开始一直以为是Jenkins配置问题,百度了好几个晚上都没有找到答案。 后来看到有人是在服务器上配置git的SSH,然后我意识 ...
分类:
其他好文 时间:
2021-04-19 15:57:00
阅读次数:
0
生成RSA密钥 1. 制作密钥对 [root@host ~]$ ssh-keygen <== 建立密钥对 Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): ...
分类:
系统相关 时间:
2021-04-19 15:54:27
阅读次数:
0
1 // 变长参数传递与两个函数之间 2 template <class... Args> 3 void myTest(Args... args) { 4 printf("%d,%d,%d,%d", args...); 5 } 6 int main() { 7 myTest(1, 2, 3, 4); ...
分类:
其他好文 时间:
2021-04-19 15:50:56
阅读次数:
0
#! /bin/bash # @author # @breif auto ssh function show_usage(){ echo -e " This is Usage " echo -e " -h: which host to go,for example dev041" } functio ...
分类:
其他好文 时间:
2021-04-19 15:50:26
阅读次数:
0
vue 模板语法是这样的: html: <div id='app'> <!-- 调用该组件之前必须先注册该组件! --> <test></test> </div> js: new Vue({ components: { // 注册 test 组件 test: { template: '<div cl ...
分类:
其他好文 时间:
2021-04-19 15:27:04
阅读次数:
0
Description Link. 起床困难综合症 上树。 Solution 线段树维护,树剖上树。 具体题解有空再写,我要去睡觉了。 #include<bits/stdc++.h> typedef unsigned long long ULL; struct node { ULL one,zero ...
分类:
其他好文 时间:
2021-04-19 15:09:51
阅读次数:
0
记录一次修改mysql密码的完整过程(deepin系统) 登录数据库时出现: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 在mysql 8.0版本的正确修改密码姿势为(deep ...
分类:
数据库 时间:
2021-04-19 14:47:56
阅读次数:
0
1、首先,通过Config Map来对容器中redis应用的配置进行管理,如自定义配置文件、密码、日志路径等 redis-standalone-conf.yml apiVersion: v1 kind: ConfigMap metadata: name: redis-standalone-conf ...
分类:
Web程序 时间:
2021-04-19 14:44:47
阅读次数:
0