码迷,mamicode.com
首页 >  
搜索关键字:const    ( 26295个结果
页面上多个audio只播放一个
// ts版-vue private justPalyOne() { const audios = document.querySelectorAll("audio"); // 暂停函数 const pauseAll = (exclude: any): any => { audios.forEach ...
分类:其他好文   时间:2021-04-27 15:20:20    阅读次数:0
2021团体程序设计天梯赛 L1-8 乘法口诀数列
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; int ans[maxn]; int main() { int a, b, n; cin >> a >> b >> n; ...
分类:其他好文   时间:2021-04-27 15:09:43    阅读次数:0
2021团体程序设计天梯赛 L2-1 包装机
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; queue<char> que[maxn]; stack<char> s; int main() { int n, m, ...
分类:其他好文   时间:2021-04-27 15:08:37    阅读次数:0
主席树模板
#include <iostream> #include <algorithm> #include <cstdio> using namespace std; const int N = 2e5 * 20; int a[N], b[N], root[N]; struct President_Tree ...
分类:其他好文   时间:2021-04-27 15:01:57    阅读次数:0
hash
#include <bits/stdc++.h> typedef unsigned long long ll; const ll P=1331; using namespace std; ll hash1[1000000],u[1000000]; ll get(int l,int r){ retur ...
分类:其他好文   时间:2021-04-27 15:00:27    阅读次数:0
typescript 数组类型的定义
简单的定义 const numArr:number[]=[1,2,3] const strArr:string[]=['a','b','c'] const undeArr:undefined[]=[undefined,undefined] 数组中有字符串又有数组的类型 const arr:(numb ...
分类:编程语言   时间:2021-04-27 14:24:27    阅读次数:0
nodejs 异步转同步整理
主要是集中参考使用方法,可以结合自己的场景解决问题 参考代码 const co =require("co") const AsyncUtil = require('async-utility').default; async function demo(){ return { name:"dalon ...
分类:Web程序   时间:2021-04-27 14:20:05    阅读次数:0
muduo 库解析之十一:Thread
线程 创建线程 #include <pthread.h> int pthread_create(pthread_t *restrict thread,const pthread_attr_t *restrict attr,void *(*start_routine)(void*), void *re ...
分类:其他好文   时间:2021-04-26 13:53:31    阅读次数:0
taro封装request请求
export const request = (url, method = "GET", data) => { let _url = `${baseUrlPrefix}${url}`; return new Promise((resolve, reject) => { Taro.showLoadin ...
分类:其他好文   时间:2021-04-26 13:33:10    阅读次数:0
控制台打印1
系统:win10 今天在使用控制台打印内容时, 发现个人对制表符不是很清楚,在此记录,以便日后查阅. 分割线 函数: int printf(const char* _Format, ...) 注1:这货竟然有返回值, 返回输出的字符数量 注2:关于输出乱码的问题:printf打印,包括Qt控件上显示 ...
分类:其他好文   时间:2021-04-26 13:25:33    阅读次数:0
26295条   上一页 1 ... 21 22 23 24 25 ... 2630 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!