堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
今天在.Netcore项目里增加了图片验证码功能,在windows部署下未发现问题,但是在Linux(Centos)下部署却出现了如下问题 查了下是因为用了System.Drawing.Common类库需要在linux下安装一下libgdiplus来支持图像处理,图片处理,因为我的环境是在Docke ...
分类:
Web程序 时间:
2021-04-21 12:05:44
阅读次数:
0
借鉴微博:https://blog.csdn.net/zhifeiya/article/details/42919047 核心代码: using System;using System.Collections;using System.Collections.Generic;using System ...
UDP 发短信 : 不需要连接但是需要知道对方的地址 发送消息 //不需要连接服务器 public static void main(String[] args) throws Exception { //1.建立一个socket DatagramSocket datagramSocket = ne ...
分类:
其他好文 时间:
2021-04-21 11:50:41
阅读次数:
0
前言 在学习算法很美课程的时候,学习到了一些位运算的奇技淫巧,收录在此 判断奇偶数 判断奇数1 & x == 1 System.out.println((1991 & 1) == 1); 判断偶数1 & x == 0 System.out.println((1990 & 1) == 0); 获取二进 ...
分类:
编程语言 时间:
2021-04-20 15:43:24
阅读次数:
0
该模式的作用就是复制对象,特别是复杂的对象。 1.浅克隆 两个要点:实现Cloneable接口,重写clone()方法 public class Product implements Cloneable{ private String name; private Date date; public ...
分类:
其他好文 时间:
2021-04-20 15:18:21
阅读次数:
0
参考ColorComboBox做修改,并对颜色名做些修正,用于CR MVMixer产品中,聊作备忘~ 效果图: 代码: //颜色拾取框 using System; using System.ComponentModel; using System.Drawing; using System.Wind ...
代码: #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int ma ...
分类:
其他好文 时间:
2021-04-20 14:10:46
阅读次数:
0
public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
分类:
其他好文 时间:
2021-04-20 14:06:09
阅读次数:
0
1. Binder的系统日志文件 # ps -A | grep suspend system 699 1 2184444 4564 binder_ioctl_write_read 0 S android.system.suspend@1.0-service # ls /proc/699/fd -l ...
分类:
其他好文 时间:
2021-04-19 15:59:18
阅读次数:
0