码迷,mamicode.com
首页 >  
搜索关键字:read case while    ( 57414个结果
摄像头驱动--mmap
看到之前在csdn 上写的摄像头驱动总结,首先得感谢摄像头驱动这个东西 让我在读书时挣到了一笔生活费!! 现在把文章简要拷贝过来,以及去掉之前的代码然后随便扯一下文件的map吧 驱动核心: 将摄像头驱动中的yuv数据map到用户空间,便于访问。read 性能不够!! 原理是:通过mmap将内核太bu ...
分类:其他好文   时间:2021-04-23 12:17:55    阅读次数:0
union和bit field巧妙进行寄存器位操作
1. 用union结构区分大小端 #define read_bits(stc, field)({stc.raw = 0x12345678; stc.bits.field;}) union a{ unsigned int raw; struct { unsigned int bit_a : 8; un ...
分类:其他好文   时间:2021-04-23 12:09:11    阅读次数:0
ABAP Help Document(15):8.数据类型转换
8.Assignments 8.1Assignment rules 数值型数据类型:i(b,s),p,decfloat16,decfloat34,f; 字符型数据类型:c,string,n,d,t; 类:CL_ABAP_DECFLOAT,READ_DECFLOAT34 and READ_DECFLO ...
分类:其他好文   时间:2021-04-23 12:08:18    阅读次数:0
【Java笔试】输入输出模板
笔试算法题中,有时候是要自己处理输入,比如从键盘中接收一个数,整理了一些常用的,真正笔试之前可以看一看。 输入 循环输入: Scanner sc = new Scanner(System.in); while (sc.hasNextLine()){ String s = sc.nextLine(); ...
分类:编程语言   时间:2021-04-23 12:06:51    阅读次数:0
linux shell while循环
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:系统相关   时间:2021-04-23 12:03:54    阅读次数:0
L1-063 吃鱼还是吃肉 (10 分)
水题。 int h[]={129,130}; int w[]={25,27}; int main() { int T; cin>>T; while(T--) { int sex,height,weight; cin>>sex>>height>>weight; vector<string> res; ...
分类:其他好文   时间:2021-04-23 11:57:55    阅读次数:0
linux shell脚本中流程控制语句 if 、for、while、case
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:系统相关   时间:2021-04-22 16:20:40    阅读次数:0
while 循环初认识
#!/usr/bin/env python #-*- coding:utf-8 -*- num=0 while num<=10: print(num,end="\t") num +=1 print("**************************") num2=0 sum_all=0 whil ...
分类:其他好文   时间:2021-04-22 16:16:24    阅读次数:0
测试框架之一 强大的unittest详解
一、什么是unittest unittest是Python单元测试框架,类似于JUnit框架。 unittest中有4个重要的概念:test fixture, test case, test suite, test runner Testcase: 一个TestCase的实例就是一个测试用例。什么是 ...
分类:其他好文   时间:2021-04-22 16:10:25    阅读次数:0
leetcode-二分查找相关
二分查找的基本框架 int binarySearch(int[] nums, int target) { int left = 0, right = ...; while(...) { int mid = left + (right - left) / 2; if (nums[mid] == tar ...
分类:其他好文   时间:2021-04-22 15:54:34    阅读次数:0
57414条   上一页 1 ... 36 37 38 39 40 ... 5742 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!