码迷,mamicode.com
首页 >  
搜索关键字:while loop    ( 31405个结果
[USACO20FEB]Timeline G
很明显的拓扑 推一波: https://www.luogu.com.cn/blog/Hehe-0/p2017-dizzy-cows-g 1 #include<bits/stdc++.h> 2 3 4 using namespace std; 5 const int mmm=1e6+1; 6 7 in ...
分类:其他好文   时间:2021-05-23 23:01:52    阅读次数:0
SetWindowSubclass 设置窗口子类回调
今天想给一个 Static 控件添加一个鼠标相关的事件:移入,移出,按下,松开事件 一开始以为在 while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character message ...
分类:Windows程序   时间:2021-05-04 16:13:11    阅读次数: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
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
DENIED Redis is running in protected mode because protected mode is enabled
DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to ...
分类:其他好文   时间:2021-04-30 12:41:09    阅读次数:0
韩顺平Java斐波那契查找
代码有一个bug,当数组长度为13的时候,查找数组最后一个数时会报数组角标越界。将代码: //获取到斐波那契分割数值的下标 while (high > f[k] - 1) { k++; } 改成 //获取到斐波那契分割数值的下标 while (high >= f[k] - 1) { k++; } 就 ...
分类:编程语言   时间:2021-04-30 12:34:46    阅读次数:0
实验4 函数和数组应用编程
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:编程语言   时间:2021-04-30 12:31:46    阅读次数:0
实验四
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:其他好文   时间:2021-04-30 12:31:08    阅读次数:0
实验4
#include<stdio.h> void fun(int n); int main(){ int n; long long f; while(scanf("%d", &n)!=EOF){ fun(n); } return 0; } void fun(int n){ int f[505],a[50 ...
分类:其他好文   时间:2021-04-30 12:29:16    阅读次数:0
31405条   上一页 1 ... 15 16 17 18 19 ... 3141 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!