摘要: windows c++ 不堵塞 监听键盘输入 支持修改已经输入的内容,并且记录最近30条记录,多了覆盖,通过上下方向按键来显示历史记录 代码如下: #include <iostream> #include <windows.h> #include <vector> #include <string> 阅读全文
posted @ 2024-03-21 18:29 Maguyusi 阅读(111) 评论(0) 推荐(0)
摘要: local tbl = {1,2,4,5,7,8,9,10,12,13,14,15,16,17,18,19,20} local nDays = 1 --连续签到天数 local nMax = 0 --最大连续签到天数 for k,v in pairs(tbl) do if table.getn(tb 阅读全文
posted @ 2024-03-20 23:18 Maguyusi 阅读(13) 评论(0) 推荐(0)
摘要: OpenWrt扩容有多种方法。 1、直接修改镜像文件分区大小 linux中操作 解压镜像文件 并且扩容 gzip -kd openwrt.img.gz dd if=/dev/zero bs=1M count=500 >>openwrt.img parted openwrt.img print res 阅读全文
posted @ 2024-03-10 12:23 Maguyusi 阅读(1122) 评论(0) 推荐(0)
摘要: wxWidgets is a C++ library that lets developers create applications for Windows, macOS, Linux and other platforms with a single code base. It has popu 阅读全文
posted @ 2024-02-02 14:24 Maguyusi 阅读(18) 评论(0) 推荐(0)
摘要: 1、冒泡排序 void bubble_sort(int a[], int n)//n为数组a的元素个数 { int i, j, temp; for (j = 0; j < n - 1; j++) for (i = 0; i<n - 1 - j; i++) { if (a[i]>a[i + 1])// 阅读全文
posted @ 2024-01-24 07:26 Maguyusi 阅读(22) 评论(0) 推荐(0)
摘要: c/c++ 排序 #include <stdio.h> void swap(int arr[], int i, int j) { int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } void heapify(int tree[], int n, 阅读全文
posted @ 2024-01-20 12:24 Maguyusi 阅读(8) 评论(0) 推荐(0)
摘要: docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 --ip-range=192.168.1.0/24 --ipv6 --subnet=fe00::/64 -o parent=eth0 subn 阅读全文
posted @ 2024-01-14 18:13 Maguyusi 阅读(116) 评论(0) 推荐(0)
摘要: cygwin是一个好软件,凝聚了大家很多的心血,在win11下运行的很流畅,远比微软自己搞得那个ubuntu顺手,但它有个小问题,重装系统后,如果原来的cgywin文件夹没有删除的话,你会发现你无法删除它,简直比病毒还要顽固。 找了好久终于在网上找到这段自动删除的bat代码,记录一下: SET DI 阅读全文
posted @ 2024-01-13 11:50 Maguyusi 阅读(369) 评论(0) 推荐(0)
摘要: function CreateThread( lpThreadAttributes: Pointer; {安全设置} dwStackSize: DWORD; {堆栈大小} lpStartAddress: TFNThreadStartRoutine; {入口函数} lpParameter: Point 阅读全文
posted @ 2024-01-11 10:20 Maguyusi 阅读(574) 评论(0) 推荐(0)
摘要: #include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; DWORD WINAPI Fun(LPVOID lpParamter) { int sum = 0; for (int i = 0; i 阅读全文
posted @ 2024-01-11 10:20 Maguyusi 阅读(13) 评论(0) 推荐(0)