码迷,mamicode.com
首页 >  
搜索关键字:while if else    ( 50281个结果
SetWindowSubclass 设置窗口子类回调
今天想给一个 Static 控件添加一个鼠标相关的事件:移入,移出,按下,松开事件 一开始以为在 while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character message ...
分类:Windows程序   时间:2021-05-04 16:13:11    阅读次数:0
C - Arrangement for Contests
题目链接 维护一个区间最小值同时维护一个区间最小值的减法 #include <bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; int n,k; struct node{ int l,r; int v,add; } ...
分类:其他好文   时间:2021-05-04 16:06:56    阅读次数:0
层次打印二叉树
#include<vector> #include<queue> #include<string> #include<binaryNode.hpp> #include<iostream> #include<sstream> template<typename T> class traverse { ...
分类:其他好文   时间:2021-05-04 15:34:11    阅读次数:0
修改官方cubestore 支持minio s3
支持s3是cubestore 一个很不错的特性,可以提高系统的扩展性 参考修改 主要是添加endpoint 以及配置使用path格式请求 s3.rs impl S3RemoteFs { pub fn new( dir: PathBuf, region: String, endpoint:String ...
分类:其他好文   时间:2021-05-04 15:33:00    阅读次数:0
[CF914F] Substrings in a String
\(\text{Problem}:\)Substrings in a String \(\text{Solution}:\) 考虑分块,对每个块建出后缀自动机。 修改:暴力重建 \(i\) 所在块的 \(\text{SAM}\)。 查询:分类讨论处理。 若 \(\lvert s\rvert> B\) ...
分类:其他好文   时间:2021-05-04 15:19:13    阅读次数:0
题解 CF667A 【Pouring Rain】
题目 众所周知 \(1\) 毫升 = \(1\) 立方厘米 圆的面积 = \(π * 半径^2\) 圆柱的体积 = 圆的底面积 * 高 先根据每秒钟喝水的速度 \(v\) 毫升,求出每秒钟喝了几厘米的水。 然后再和每秒钟水面上升的速度 \(e\) 毫升比较。 这种一整行的输入对 Python 真不友 ...
分类:其他好文   时间:2021-05-03 12:55:13    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
点亮PICO板载LED灯
一、目标 会PICO引脚的使用 点亮LED 二、上程序 import machine import utime led_onboard = machine.Pin(25, machine.Pin.OUT) while True: led_onboard.value(1) utime.sleep(5) ...
分类:其他好文   时间:2021-05-03 12:32:04    阅读次数:0
DVWA--Command Injection
Low 命令注入Low级别的,我们先看一下源码 <?php if( isset( $_POST[ 'Submit' ] ) ) { // Get input $target = $_REQUEST[ 'ip' ]; // Determine OS and execute the ping comma ...
分类:其他好文   时间:2021-05-03 12:31:22    阅读次数:0
C#中使用微软语言包来获取中文汉字的拼音、拼音首字母、中文繁体
首先需要获取ChnCharInfo.dll (汉子转拼音就可以了)和ChineseConverter.dll (简繁转化吧) ChnCharInfo.dll官方下载操作如下: 先下载微软Microsoft Visual Studio International Pack 1.0 SR1语言包: Mi ...
分类:编程语言   时间:2021-04-30 12:38:39    阅读次数:0
50281条   上一页 1 ... 25 26 27 28 29 ... 5029 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!