JavaScript中的异步函数 ES8 的 async/await 旨在解决利用异步结构组织代码的问题。为此, ECMAScript 对函数进行了扩展,为其增加了两个新关键字: async 和 await。 async 关键字用于声明异步函数。这个关键字可以用在函数声明、函数表达式、箭头函数和方法 ...
分类:
编程语言 时间:
2021-01-05 11:41:31
阅读次数:
0
#include <string.h> #include <stdarg.h> #include <stdio.h> #include <limits.h> #include <stdio.h> #define CONFIG_DIR "/etc/usbs/" int main() { FILE *f ...
分类:
其他好文 时间:
2021-01-05 11:25:23
阅读次数:
0
shm.h 1 #ifndef __SHM_H 2 #define __SHM_H 3 4 #include <stdio.h> 5 6 #include <sys/ipc.h> 7 #include <sys/shm.h> 8 9 #define SHM_KEY ((key_t)0x2020123 ...
分类:
其他好文 时间:
2021-01-05 10:37:14
阅读次数:
0
使用数组创建队列 1 #include <stdio.h> 2 #define MAXQUEUE 10 3 4 int queue[MAXQUEUE]; 5 int front = -1; 6 int rear = -1; 7 8 int enqueue(int value) 9 { 10 if(r ...
分类:
其他好文 时间:
2021-01-04 11:36:12
阅读次数:
0
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<stack> #include<queue> #define ll long long using ...
分类:
其他好文 时间:
2021-01-04 10:30:49
阅读次数:
0
问题 在用vue开发时碰到父组件传值子组件时不能触发子组件的props里对应的值的default值。 父组件代码: <template> <div> <TabOrderClaim :compData="companyInfo" ></TabOrderClaim> </div> </template> ...
分类:
其他好文 时间:
2021-01-04 10:30:32
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #define LEN sizeof(struct scorenode) #define DEBUG struct scorenode{ int num ...
分类:
其他好文 时间:
2021-01-02 11:46:23
阅读次数:
0
线性筛 #include<bits/stdc++.h> #define N 1000010 using namespace std; int v[N],p[N]; void pr(int n) { memset(v,0,sizeof(v)); int m=0; for(int i=2;i<=n;i+ ...
归并排序 利用递归实现分治。每次排序时间复杂度是O(N),一共需要 LogN 次。 #include <stdlib.h> #include <time.h> #define size 100 static int n[size]; static int t[size]; void msort(in ...
分类:
编程语言 时间:
2020-12-31 12:14:15
阅读次数:
0
https://www.hex-rays.com/wp-content/static/products/ida/idapro_cheatsheet.html File Operations Parse C header file... Ctrl+F9 Create ASM file... Alt+F ...
分类:
其他好文 时间:
2020-12-30 11:11:25
阅读次数:
0