这个窗体设计器项目是从去年写的一个工具软件中扣出来的, 实现了一个窗体设计器的常规功能: 1. 拖动画控件, 按下Shift键可以连续画多个控件; 2. 橡皮筋虚线选框; 3.选择控件与切换选择状态, 可与Shift键联动切换; 4. 8方向拖动手柄; 5. 设计器窗口网点状背景; 6. 双缓冲绘图 ...
\(\text{原题链接}\) \(\text{题目大意}\) 初始有一个长度为 \(n\) 的序列 \(a\),初始全 \(0\)。 共 \(m\) 次修改,每次修改 \((l,r,v)\),让 \(a_i = \max(a_i, v), (l\leq i\leq r)\)。求出所有操作后的 \( ...
分类:
其他好文 时间:
2021-02-15 12:15:44
阅读次数:
0
https://www.bilibili.com/video/BV1g4411H78N?p=5 main.cpp 文件 #include "mywidget.h" #include <QApplication>// 包含一个应用程序类的头文件 //main程序入口 argc命令行变量的数量 argv ...
分类:
其他好文 时间:
2021-02-04 12:09:23
阅读次数:
0
模板方法Template Method模式 在稳定的整体操作结构中,子步骤可以进行变化来满足需求 template_lin.cpp 1 //程序库开发人员 2 class Library{ 3 4 public: 5 void Step1(){ 6 //... 7 } 8 9 void Step3( ...
分类:
其他好文 时间:
2021-02-02 10:38:07
阅读次数:
0
在bionic/linker/linker.cpp中有一个系统库函数的豁免列表,但是只有target sdk version小于24才能被豁免。 static bool is_exempt_lib(android_namespace_t* ns, const char* name, const so ...
分类:
移动开发 时间:
2021-01-30 12:18:43
阅读次数:
0
题意 定义 \(\text{He[N]}\) 表示满足以下方程的解的个数: \[ X^2\equiv X(\bmod N)(X\in [0,N-1]) \] 并且定义 \(\text{HeHe[N]}=\text{He[1]}\times \cdots \times \text{He[N]}\),对 ...
分类:
其他好文 时间:
2021-01-27 13:59:23
阅读次数:
0
思路分析 其实就是递归判断左树和右树,但是一些判断条件需要仔细思考下. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
分类:
其他好文 时间:
2021-01-26 11:49:40
阅读次数:
0
实现这个功能的方法有很多,这里我们看一下最常用的一种方式。 获取系统的时间 time.cpp: #include <iostream> #include <time.h> #include <string> int main() { std::string s; char stime[256] = ...
分类:
编程语言 时间:
2021-01-25 11:23:29
阅读次数:
0
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 ...
分类:
其他好文 时间:
2021-01-21 10:52:05
阅读次数:
0
D. Divide and Summarize 题意 给你n个数,q次询问,问你能否具有满足和为s的序列。 思路 再求其有多少种和时需要使用$mid = max + min >> 1$来寻找有多少种和。 然后dfs,但是需要判断一下左面或者右面全部相等情况,否则会爆栈 #include<bits/s ...
分类:
其他好文 时间:
2021-01-19 12:24:43
阅读次数:
0