unsigned char dth_read(unsigned char array[])//默认16Mhz主频,获取成功返回1,失败返回0,/*array为5字节数组,带回数据格式为: 一字节湿度(整数),一字节湿度(小数,此芯片无效,但占据8位),一字节温度(整数),一字节温度(小数,无效,占位...
分类:
其他好文 时间:
2014-10-28 11:55:22
阅读次数:
152
page : logic virtual pagepage frame : physical memory page ,struct page { unsigned long flags : atomic_t count ; struct list_head list; struct ad...
分类:
其他好文 时间:
2014-10-27 22:42:51
阅读次数:
221
题目链接:poj 2185 Milking Grid
题目大意:给定一个N?M的矩阵,找到一个最小的r?c的矩阵,使得原矩阵可以由若干个小矩阵组成,输出r?c的值。
解题思路:将行和列分别看成字符串,然后hash,对hash后的数组分别求KMP。
#include
#include
#include
using namespace std;
typedef unsigned ...
分类:
其他好文 时间:
2014-10-27 17:45:26
阅读次数:
133
ImplementPic. It should return a slice of lengthdy, each element of which is a slice ofdx8-bit unsigned integers. When you run the program, it will di...
分类:
其他好文 时间:
2014-10-27 06:54:12
阅读次数:
281
int sendto (int s, const void *buf, int len, unsigned int flags, const struct sockaddr *to, int tolen); int recvfrom(int s, void *buf, int len, unsign...
分类:
其他好文 时间:
2014-10-26 22:44:54
阅读次数:
310
曾在2.6.2节的联系(第67页)中编写一个Sales_data类,请向这个类添加combine和isbn成员.#ifndefSALES_DATA_H
#defineSALES_DATA_H
#include<string>
structSales_data
{
std::stringisbn()const{returnbookNo;}
Sales_data&combine(constSales_data&);
unsigned..
分类:
编程语言 时间:
2014-10-26 06:54:33
阅读次数:
160
1.代码:#include typedef unsigned char *byte_pointer;void show_bytes(byte_pointer start, int len){ int i; for(i = 0; i < len; i++) { printf(" %.2x"...
分类:
移动开发 时间:
2014-10-25 21:25:50
阅读次数:
159
1 #include 2 3 unsigned char isleapyear(int y) 4 { 5 return (y % 4 == 0 && y % 100 || y % 400 == 0); 6 } 7 8 int sum(int y, int m, int d) 9 {...
分类:
其他好文 时间:
2014-10-25 10:31:39
阅读次数:
146
-- 表的结构 `ecs_account_log`
CREATE TABLE IF NOT EXISTS `ecs_account_log` (
`log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',
`user_id` mediumint(8) unsigned NOT NULL COMMENT '用户...
分类:
数据库 时间:
2014-10-24 16:32:31
阅读次数:
278
//C++中的DLL函數原型為 //extern "C" __declspec(dllexport) bool 方法名一(const char* 變量名1, unsigned char* 變量名2) //extern "C" __declspec(dllexport) bool 方法...
分类:
编程语言 时间:
2014-10-24 16:09:26
阅读次数:
235