艺术的追求从编程开始

C/C++/UNIX/PYTHON/ALGORITHM

导航

2012年7月4日

将char转成bit,文件读写

摘要: 好久不写代码,一段将bmp写到mif的小程序花了我好几个小时。以后要多练习啊。 1 #include <string.h> 2 #include <stdio.h> 3 #include <math.h> 4 5 6 void main(){ 7 char str[3]; 8 char pos_str[5]; 9 10 FILE *fp_read;11 fp_read = fopen("pattern_mem.bmp","r");12 13 FILE *fp_write;14 fp_write = fopen(&quo 阅读全文

posted @ 2012-07-04 21:35 Rambo.Wang 阅读(1910) 评论(0) 推荐(0) 编辑