uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 1 char assert_buf[512]; 2 int assert_buf_len; 3 4 #ifdef XXX_DEBUG 5 #define assert(expr, ...) \ 6 do{ \ 7 if ((!(expr))) \ 8 {\ 9 char *str = __FILE__; \ 10 int ... 阅读全文
posted @ 2016-08-08 18:34 uTank 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 随机复写硬盘,可以防止一般的数据恢复??? 阅读全文
posted @ 2016-08-05 10:55 uTank 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: The minimum interval between the leading edges of the start bits of two consecutive characters sent by the terminal to the ICC shall be between 11 and 阅读全文
posted @ 2016-06-17 10:05 uTank 阅读(637) 评论(0) 推荐(0) 编辑
摘要: The minimum interval between the leading edges of the start bits of two consecutive characters sent by the terminal to the ICC shall be between 12 and 阅读全文
posted @ 2016-06-16 23:00 uTank 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 似乎有点无聊耶~~~~~(>_<)~~~~ 阅读全文
posted @ 2016-06-08 17:20 uTank 阅读(2080) 评论(0) 推荐(0) 编辑
摘要: 假设通过数组in来表示一个很大的数(in[0]表示最低bit),提取该数的第start位到第end位(计数起始位为0): 阅读全文
posted @ 2016-06-08 16:52 uTank 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 一、ATR是什么 ATR也叫复位应答,是一个字节序列,这些字节是由卡作为对复位命令的响应发送给读卡器的。在I/O电路上,每个成功的复位操作都会导致I/O上的一个由初始字符TS开始,后跟最多32个字符的复位应答。ATR的作用是告诉读卡器,我是一张什么样的卡片,以便读卡器知道接下来该以什么样的方式和卡片 阅读全文
posted @ 2016-06-05 11:12 uTank 阅读(12391) 评论(0) 推荐(3) 编辑
摘要: 输入的是ATR,通过解析输出TA、TB、TC、TD的信息。 似乎没有容错处理,~~~~(>_<)~~~~ 阅读全文
posted @ 2016-06-05 11:09 uTank 阅读(4142) 评论(0) 推荐(1) 编辑
摘要: 一、注册一个硬件中断服务函数irq_handler,作为硬件中断产生后,实际中断服务函数的总入口。 二、中断服务函数irq_handler入口,根据不同的条件调用不同分支 三、定义一个全局的函数指针,作为“Interrupt Virtual Service Routine”,通过注册函数,在不同阶段 阅读全文
posted @ 2016-04-26 18:17 uTank 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 分组密码和流密码 密码算法可以分为分组密码和流密码两种。 分组密码(block cipher)是每次只能处理特定长度的一块数据的一类密码算法,这里的“一块”就称为分组(block)。此外,一个分组的比特数就称为分组长度(block length)。 例如,DES和三重DES的分组长度都是64比特。这 阅读全文
posted @ 2016-04-22 10:03 uTank 阅读(486) 评论(0) 推荐(0) 编辑
摘要: http://www.race604.com/gatt-profile-intro/https://learn.adafruit.com/introduction-to-bluetooth-low-energy?view=all#https://www.bluetooth.com/develop-w... 阅读全文
posted @ 2016-01-07 23:23 uTank 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 错误码定义: 1 /* Success code */ 2 #define HCI_SUCCESS 0x00 3 /* Possible error codes */ 4 #define HCI_UNK... 阅读全文
posted @ 2016-01-03 01:17 uTank 阅读(6145) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 #include <stdlib.h> 4 5 // x1 + x2 = yy 6 int add_1(char *x1, char *x2, char *yy) 7 { 8 int x1_len, x2_le 阅读全文
posted @ 2015-12-18 23:55 uTank 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 line... 阅读全文
posted @ 2015-09-01 15:15 uTank 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are ... 阅读全文
posted @ 2015-09-01 14:40 uTank 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number... 阅读全文
posted @ 2015-09-01 14:16 uTank 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors th... 阅读全文
posted @ 2015-09-01 11:01 uTank 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 《剑指offer》中的一个题目: 在一个二位数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下的递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 例如,下面的二位数组就是每行、每列都递增排序。如果在这个数组中查找数字7,则返回true;如果查 阅读全文
posted @ 2015-08-31 17:50 uTank 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】某城镇进行人口普查,得到了全体居民的生日。现请你写个程序,找出镇上最年长和最年轻的人。这里确保每个输入的日期都是合法的,但不一定是合理的——假设已知镇上没有超过200岁的老人,而今天是2014年9月6日,所以超过200岁的生日和未出生的生日都是不合理的,应该被过滤掉。输入格式:输入在第一... 阅读全文
posted @ 2015-08-27 10:33 uTank 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 【题目链接】大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小... 阅读全文
posted @ 2015-08-26 14:58 uTank 阅读(667) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页