static int fd; static uint64_t buffer; static void threadFunc(void) //线程函数 { int t; eventfd_t value; int ret = -1; while(1) { #if 0 t = read(fd,&buffe ...
分类:
其他好文 时间:
2020-12-16 12:45:24
阅读次数:
2
实验任务1 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", ...
分类:
其他好文 时间:
2020-12-16 12:27:41
阅读次数:
3
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>overla ...
分类:
其他好文 时间:
2020-12-16 11:41:34
阅读次数:
3
在JDK8u的jdk项目下做个很粗略的搜索: mymbp:/Users/me/workspace/jdk8u/jdk/src $ egrep -nr "for \\(\\s?;\\s?;". | wc -l 369 mymbp:/Users/me/workspace/jdk8u/jdk/src $ ...
分类:
编程语言 时间:
2020-12-15 12:16:17
阅读次数:
4
vue 刚拉下来的项目, npm install时 出现error:npm ERR! Unexpected end of JSON input while parsing near '…//registry.npmjs.org/ 解决方案 npm cache clean --force 重启 cac ...
分类:
Web程序 时间:
2020-12-14 13:23:48
阅读次数:
6
在学数据结构时,我们往往不太清楚在定义一个结构体指针时要不要使用malloc函数。 例如以下的代码: LINKLIST *init linklist() { LINKLIST *H=NULL; LINKLIST *S; int x; printf("请输入链表元素 或以-1结束输入") while( ...
分类:
其他好文 时间:
2020-12-14 13:21:36
阅读次数:
4
break代表结束本层循环,而continue则用于结束本次循环,直接进入下一次循环 continue##打印1-10 除了7的数字number=11 while number>1: number -= 1 if number==7: continue # 结束掉本次循环,即本次循环continue ...
分类:
编程语言 时间:
2020-12-11 12:27:22
阅读次数:
8
Description A frightful matrix is a square matrix of order n where the first row and the first column are explicitly specified, while the other elemen ...
分类:
其他好文 时间:
2020-12-11 11:54:24
阅读次数:
4
leetcode41.缺失的第一个正数--每天刷一道leetcode算法系列!作者:reed,一个热爱技术的斜杠青年,程序员面试联合创始人前文回顾:leetcode1.两数之和--每天刷一道leetcode系列!leetcode2.两数相加--每天刷一道leetcode系列!leetcode3.无重复字符的最长子串--每天刷一道leetcode系列!leetcode4.寻找两个有序数组的中位数--
分类:
编程语言 时间:
2020-12-10 10:38:15
阅读次数:
4
Selective Search import cv2 vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4') success,image = vidcap.read() count = 0 while success: cv2.imwrit ...
分类:
其他好文 时间:
2020-12-09 12:32:44
阅读次数:
32