NoFear

导航

2011年12月6日

摘要: View Code //in.txt://File Flag 2DPatch//1 3216//2 3216 (2548-3216 x 4)//3 3216 (2552-3216 x 4)//4 3212 (2556-3212 x 4)//5 3208 (2564-3216 x 4)//6 3204 (2572-3216 x 4)//7 3196 (2580-3216 x 4)//8 3192 (2588-3216 x 4)//9 3188 (2596-3216 x 4)//10 3184 (2548-3216 x 4)//11 3180 (2548-3216 x 4)//文档就是这样的格式, 阅读全文

posted @ 2011-12-06 14:11 Fear_Hao 阅读(194) 评论(0) 推荐(0) 编辑

摘要: View Code //************************************// 函数: HexToBin// 参数: const char * src// 参数: unsigned char * bin// 参数: int & len// 返回: void// 作用: 16进制 to 2进制//************************************void HexToBin(const char* src, unsigned char* bin, int &len){ //printf("... 阅读全文

posted @ 2011-12-06 11:52 Fear_Hao 阅读(340) 评论(0) 推荐(0) 编辑

摘要: View Code //************************************// 函数: BinToHex// 返回: void// 作用: 2进制文件转16进制文件//************************************void BinToHex(){ FILE *FpIn , *FpOut; int c ; FpIn=fopen("bin.txt","rb"); FpOut=fopen("Hex.txt","w"); if (NULL==FpIn) { printf(&q 阅读全文

posted @ 2011-12-06 11:02 Fear_Hao 阅读(390) 评论(0) 推荐(0) 编辑