ICode9

精准搜索请尝试: 精确搜索
  • 关于拷贝QQ、微信、企业微信等软件聊天过程中保存的文件2022-07-22 18:39:29

    为什么 关于拷贝QQ、微信、企业微信等软件聊天过程中保存的文件,下午的时候整理资料,发现了去年的文件,直接开搞,把数据给整理处理 逻辑 递归遍历文件夹中的文件,碰到符合条件的后缀文件进行拷贝,如果有重命名的进行添加一个uuid 常见文件格式 需要添加什么可以可以自行进行添加 代码 #

  • 关于拷贝QQ、微信、企业微信等软件聊天过程中保存的文件2022-07-22 18:39:23

    为什么 关于拷贝QQ、微信、企业微信等软件聊天过程中保存的文件,下午的时候整理资料,发现了去年的文件,直接开搞,把数据给整理处理 逻辑 递归遍历文件夹中的文件,碰到符合条件的后缀文件进行拷贝,如果有重命名的进行添加一个uuid 常见文件格式 需要添加什么可以可以自行进行添加 代码 #

  • 指针作为形参问题2022-07-22 10:35:04

    点击查看代码 void swap1(int *p1,int *p2) { int *temp; temp = p1; p1 = p2; p2 = p_temp; } int main() { int a = 10,b = 20; printf("交换之前:%d,%d\n",a,b); printf("swap1交换a-b之前a和b的地址:%p,%p\n",&a,&b); swa

  • 浅析排序算法-1 (列举5种)2022-07-22 00:34:40

    浅谈几个重要的排序算法,实现数组的升序排序 初始代码: #include <stdio.h> #include <stdlib.h> #include <string.h> #define NUM 10 void travel(int *arr,int len,bool sorted=false); int main(void) { int arr[NUM] = {1,9,0,5,7,2,12,54,21,33}; // 测试数组 //

  • 【C++】模板的使用2022-07-21 13:35:39

    #include <iostream> using namespace std; struct job { char name[40]; double salary; int floor; }; void show(job &j); template <typename T> void Swap(T &a,T &b); const int LIM = 8; void show(int arr[],int n); templat

  • DSCTF首届数字空间安全攻防大赛_picproblem_wp2022-07-21 11:02:48

    CTF-CRYPTO方向学习 DSCTF首届数字空间安全攻防大赛 picproblem task: picproblem.py from PIL import Image from Crypto.Util.number import * from numpy import array, zeros, uint8 import gmpy2 as gp import cv2 from key import x,y,kn,hint image = cv2.imread("flag.jpg

  • temp2022-07-20 17:01:56

    数据 1 2 1 3 1 4 2 5 3 6 3 7 4 8 6 12 12 13 12 14 12 15 12 16 8 9 8 10 8 11 10 17 15 18 16 19 16 20 5 21 5 22 21 23 23 24 24 25 24 26 24 27 17 28 17 29 28 30

  • 移动零2022-07-20 12:06:05

    /* leetCode -- 移动零 */ public class Remove_zero { public static void main(String[] args) { Solution solution = new Solution(); int[] number = new int[]{0,1,0,3,12}; solution.moveZeroes(number); } } 上面是测试 //------------

  • C++ STL :vector动态数组可实现整体赋值2022-07-20 00:02:32

    vector 是 STL 库中很常用的工具,可以理解为一个动态数组。 vector可以实现整体赋值普通的数组,比如 int 数组,只能通过索引一个元素一个元素的赋值,在有些情况下十分不便,但是今天在 coding 过程中惊喜的发现 vector 可以实现整体赋值。 struct sample{ int id; double AC;

  • 冒泡排序2022-07-18 23:01:45

    分为内层循环和外层循环, 每次内层循环从左到右两两相比较,将最小的数放到最右边,一次内层循环走完放置出一个最小数,放置出的最小数就不需要再参与比较了,不要去动它。 外层循环决定要找出的最小数的个数。     //降序冒泡排序 public class demo3 { public static void main(

  • 题目242022-07-18 11:13:13

      身高从低到高 身高相同体重从轻到重 体重相同维持原来顺序 输入 4 100 100 120 130 40 30 60 50 输出: 2 1 3 4 输入 3 90 110 90 45 60 45 输出 1 3 2思路:[ [1,100,40],//当作一个整体 [2,100,30], [3,120

  • FPGA学习-1,ModelSim 仿真2022-07-16 16:33:14

    参考 https://blog.csdn.net/xy_z_H/article/details/124825179 补充 1、用到的两个文件(手敲一遍) BCD.v module BCD(A,B , Sum, Cout); input [3:0]A , B; output [3:0]Sum; output Cout; wire [4:0]Temp; assign Temp =A + B; assign {Cout , Sum} = (Temp > 9)?Temp

  • 2022-7-16 剑指offer-快速乘法2022-07-16 11:03:31

    剑指 Offer 16. 数值的整数次方 难度中等320收藏分享切换为英文接收动态反馈 实现 pow(x, n) ,即计算 x 的 n 次幂函数(即,xn)。不得使用库函数,同时不需要考虑大数问题。 1 class Solution { 2 public double myPow(double x, int n) { 3 boolean flag=n>0?tr

  • 【学习笔记】八大排序(待更新)2022-07-16 09:00:10

    八大排序(待更新)   一、 冒泡排序 1.什么是冒泡排序? 冒泡排序的英文是Bubble Sort ,是一种最基础的交换排序,之所以叫冒泡排序,是因为每个元素都可以像小气泡一样,根据自身大小一点一点地向数组一侧移动。 原理: 每一趟只能确定将一个数归位,即第一趟只能确定将末尾上的数归位,第二趟只

  • 归并排序算法代码实现2022-07-16 08:33:10

    上代码 package com.liu.pro; import java.util.Arrays; public class mergeSort { public static void main(String[] args) { // 测试数组 int[] arr = {9, 8, 5, 6, 2, 7, 1, 3, 4}; int[] temp = new int[arr.length]; sort(arr, 0, arr.

  • 寻找第二大2022-07-15 16:34:54

    uint16_t findmaxI_Sec(uint16_t* array){ uint16_t i=0; uint16_t temp = 0; uint16_t tempA=0; uint16_t tempB=0; uint16_t tempC=0; uint16_t tempmaxA=array[0]; uint16_t tempmaxB=array[128]; uint16_t tempmaxC=array[256]; for(i=0; i<128; i++)

  • java获取项目资源文件2022-07-14 20:38:22

    获取路径Resource文件夹下的资源的路径 String tempPath = new ClassPathResource("static/temp.pdf").getPath();

  • temp2022-07-14 19:33:19

  • 剑指 Offer 34. 二叉树中和为某一值的路径2022-07-13 17:37:13

    给你二叉树的根节点 root 和一个整数目标和 targetSum ,找出所有 从根节点到叶子节点 路径总和等于给定目标和的路径。叶子节点 是指没有子节点的节点。 示例 1:     输入:root = [5,4,8,11,null,13,4,7,2,null,null,5,1], targetSum = 22输出:[[5,4,11,2],[5,8,4,5]]示例 2:    

  • centos7提示cannot create temp file for here-document: No space left on device解决方案2022-07-13 12:04:56

    一、使用 df -h 命令查看,发现/根目录的剩余空间为0。总共系统盘容量才50G。     可见 /dev/mapper/centos-root 目录 也就是/根目录 空间已使用完毕 二、使用 cd / && du -h -x --max-depth=1查看哪个目录占用过高,对于过高目录中的内容适当删减文件   var目录占用过大,可

  • Linked List2022-07-13 00:35:57

    Add a node at linked list end #include <stdio.h> #include <stdlib.h> //malloc typedef struct node{ int data; struct node* next; }*list; list add_node_end(list ptr,int data) { list temp = (list*)malloc(sizeof(list)); temp ->

  • CentOs安装Nginx2022-07-12 10:03:26

    安装所需环境 **安装 gcc pcre pcre-devel zlib OpenSSL 安装 **  安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum install -y gcc-c++   pcre pcre-devel zlib zlib-devel openssl openssl-devel 官网下

  • 冒泡排序2022-07-11 21:08:42

    public class Demo { public static void main(String[] args) { //冒泡排序 int[] ints = {3,2,43,54,32,22,-2,34,66,35}; int temp; for (int i = 0; i < ints.length - 1; i++) {//从第i个数开始 for (int j = 0; j < ints.length

  • 单链表的创建及实现2022-07-10 00:03:48

    代码如下: package com.liu.pro; public class ChainTable01 { public static void main(String[] args) { HeroNode heroNode1 = new HeroNode(1, "宋江", "及时雨"); HeroNode heroNode2 = new HeroNode(2, "吴用", "智多星&quo

  • C#对字符串进行加密解密2022-07-09 23:33:37

    首先上效果图    加解密接口 internal string ToEncrypt(string encryptKey, string str) { try { byte[] P_byte_key = //将密钥字符串转换为字节序列 Encoding.Unicode.GetBytes(encryptKey);

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有