yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  code

摘要:java--18位身份证号最后一位(检验码)是怎么算出来的? 身份证的最后一位是根据前17位数字计算出来的检验码。计算方法是:将身份证号码前17位数分别乘以不同的系数。从第1位到第17位的系数分别为:7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2;将乘积之和除以11,余数可能 阅读全文
posted @ 2018-01-28 17:17 xxxxxxxx1x2xxxxxxx 阅读(2845) 评论(0) 推荐(0)

摘要:md5sum.c#include #include #include "md5.h"#pragma warning(disable:4996)#define BUFFER_SIZE 0x200000void print_digest(const unsigned char* diges... 阅读全文
posted @ 2015-07-02 01:41 xxxxxxxx1x2xxxxxxx 阅读(627) 评论(0) 推荐(0)

摘要:openwrt下和云端通讯的例程ibcurl官方文档请参考这里http://curl.haxx.se/libcurl/c/curl_easy_setopt.html刚接触 libcurl的时候, 自然的想到按照常规的思路来连接云端: 先连接Web, 再发送请求, 然后等待接受返回数据.这样思路的代码... 阅读全文
posted @ 2015-07-02 00:58 xxxxxxxx1x2xxxxxxx 阅读(352) 评论(0) 推荐(0)

摘要:int write_chip(UINT32 addr, UINT32 data){ if(0 == fpgaRWMode) /* localbus mode */ { UINT16 datah, datal; UINT32 dataread; ... 阅读全文
posted @ 2015-02-04 01:40 xxxxxxxx1x2xxxxxxx 阅读(235) 评论(0) 推荐(0)

摘要:wordsCounter.cpp// wordsCounter.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "wordsCounter.h"#ifdef _DEBUG#... 阅读全文
posted @ 2014-12-12 23:42 xxxxxxxx1x2xxxxxxx 阅读(179) 评论(0) 推荐(0)

摘要:运动图像检测系统:准备:移植Linux2.6.29运行于s3c2440板子上,按键驱动,USB host controller驱动声卡驱动动态链接文件系统制作SDK-MOTION/src/fs/rootfs-motion.tar.gzmadplay播放器移植图像运动检测程序设计报警主程序设计1.当移... 阅读全文
posted @ 2014-11-17 17:57 xxxxxxxx1x2xxxxxxx 阅读(287) 评论(0) 推荐(0)

摘要:安全文件传输系统组成:客户端:用户登录,上传文件,下载文件,浏览文件列表服务器:用户登录,服务器配置,多线程管理,上传下载管理,系统日志协议:自定义传输协议要求:1.系统要求必须支持将每个文件数据进行存储2.客户端支持从服务器中获取文件的元数据3.服务端要求是必须多线程的,能够允许多个客户同时连接4... 阅读全文
posted @ 2014-11-16 20:01 xxxxxxxx1x2xxxxxxx 阅读(972) 评论(0) 推荐(0)

摘要:分四部分:按键驱动,声卡驱动,Madplay播放器移植,MP3主播放器处理按键1:播放,按键2:停止,按键3:上一曲,按键4:下一曲UA1341内核自带声卡驱动1.解压内核: tar zxvf linux.2.6.29.tar.gz2.清理中间件,配置文件:cd linux-linux2.6.29;... 阅读全文
posted @ 2014-11-16 19:08 xxxxxxxx1x2xxxxxxx 阅读(486) 评论(0) 推荐(0)

摘要:由usb摄像头驱动,h264编码库,采集read_video,传输,客户端显示组成读取摄像头数据缓冲区是否有帧数据收到,有数据收到就读取数据并进行H264编码,把数据发送到socket发送到客户端。配置内核:make menuconfig ARCH=arm, 选择gerneral setup-->m... 阅读全文
posted @ 2014-11-13 21:29 xxxxxxxx1x2xxxxxxx 阅读(626) 评论(0) 推荐(0)

摘要:1.写出正面程序支行结果:#includeusing namespace std;void func(int a){ static int c = a; c++; cout using namespace std;class A{public: virtual void fu... 阅读全文
posted @ 2014-11-10 23:56 xxxxxxxx1x2xxxxxxx 阅读(178) 评论(0) 推荐(0)

摘要:#include #include "otdr_const.h"#include "haar.h"#include "otdr_bufferfilter.h"WORD32 windowsize=200;WORD32 backnum=900;extern void filter(double *a, ... 阅读全文
posted @ 2014-10-16 22:41 xxxxxxxx1x2xxxxxxx 阅读(185) 评论(0) 推荐(0)

摘要:#include #include #include #include #pragma once#include #include #include #include #include #include #include typedef char i8;type... 阅读全文
posted @ 2014-10-15 08:18 xxxxxxxx1x2xxxxxxx 阅读(322) 评论(0) 推荐(0)

摘要:longDataMinus.c#include #include #include #include #define MAX_DATA_LEN 1000#define TRUE 1#define FALSE 0#define OK 0#define ERROR -1typedef struct{ ... 阅读全文
posted @ 2014-10-11 19:50 xxxxxxxx1x2xxxxxxx 阅读(316) 评论(0) 推荐(0)

摘要:static unsigned char auchCRCHi[];static unsigned char auchCRCLo[];/* CRC 高位字节值表 */static unsigned char auchCRCHi[] = { 0x00, 0xC1, 0x81, 0x40, 0x01, ... 阅读全文
posted @ 2014-10-10 00:47 xxxxxxxx1x2xxxxxxx 阅读(678) 评论(0) 推荐(0)

摘要:#include #include #include //#include #define SYNC 0x40#define PARITY_EVEN 0x20#define PARITY_ODD 0x30#define STOP_2 0x04#define DATA_5 0x00#define DA... 阅读全文
posted @ 2014-10-10 00:43 xxxxxxxx1x2xxxxxxx 阅读(472) 评论(0) 推荐(0)