摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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])// 阅读全文
摘要:
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, 阅读全文
摘要:
cygwin是一个好软件,凝聚了大家很多的心血,在win11下运行的很流畅,远比微软自己搞得那个ubuntu顺手,但它有个小问题,重装系统后,如果原来的cgywin文件夹没有删除的话,你会发现你无法删除它,简直比病毒还要顽固。 找了好久终于在网上找到这段自动删除的bat代码,记录一下: SET DI 阅读全文
摘要:
#include "stdafx.h" #include <iostream> #include <windows.h> using namespace std; DWORD WINAPI Fun(LPVOID lpParamter) { int sum = 0; for (int i = 0; i 阅读全文