2017年8月21日
摘要: 可变參数 至少有一个參数 比如:void add(int a,… ){} 例题 模拟printf()函数 #include <stdio.h> #include <stdarg.h> void myprintf(constchar *format, ...) { va_list ap; char c 阅读全文
posted @ 2017-08-21 14:02 blfbuaa 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Follow up for N-Queens problem. Now, instead outputting board configurations, return the total number of distinct solutions. </form> 思路1:打表 public cla 阅读全文
posted @ 2017-08-21 12:58 blfbuaa 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 虚拟机linux与widows主机的进行文件共享 使用虚拟机的共享目录功能 使用vmware(vmware workstation 5)下shared folders功能实现vmware中host与ghost间文件传输,无需不论什么网络相关设置,不使用不论什么网络协议,host和ghost能够是li 阅读全文
posted @ 2017-08-21 11:20 blfbuaa 阅读(662) 评论(0) 推荐(0) 编辑
摘要:  《Android大图片之变换缩略图,以及对原始大图片依照指定宽、高裁剪成缩略图》 在Android的ImageView载入图像资源过程中,出于性能和内存开销的须要。有时候须要把一个原始的超大图片依照一定比例等比例缩放成较小的缩略图。或者须要把原始的超大图片,裁剪成指定宽高值的较小图片,针对这样 阅读全文
posted @ 2017-08-21 10:12 blfbuaa 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: shell脚本的学习: 1.Shell的作用是解释运行用户的命令,用户输入一条命令,Shell就解释运行一条,这样的方式称为交互式(Interactive),Shell还有 一种运行命令的方式称为批处理(Batch),用户事先写一 个Shell脚本(Script),当中有非常多条命令,让Shell一 阅读全文
posted @ 2017-08-21 09:36 blfbuaa 阅读(464) 评论(0) 推荐(0) 编辑