try { //从指定文件中引入程序的 输入流 FileInputStream fins = new FileInputStream(fileName); //缓存空间 byte[] cache = new byte[fins.available()]; //文件...
分类:
其他好文 时间:
2014-07-10 10:08:30
阅读次数:
233
银行家算法:银行家算法是一种最有代表性的避免死锁的算法。又被称为“资源分配拒绝”法。银行家算法中的数据结构:(1)可利用资源向量Available。这是一个含有m个元素的数组,当中的每个元素代表一类可利用的资源数组,其初始值是系统中所配置的该类所有可用资源的数目,其数值随该类资源的分配和回...
分类:
其他好文 时间:
2014-07-10 00:22:48
阅读次数:
211
// 产生连接字符串 string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=student.xls;" + "Extended Properties=...
分类:
其他好文 时间:
2014-07-07 23:50:13
阅读次数:
228
source命令用法:source FileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。source命令(从 C Shell 而来)是bash shell的内置命令。点...
分类:
系统相关 时间:
2014-07-07 22:15:15
阅读次数:
293
访问http://eclipse-color-theme.github.com/update点击下载:download this update site as a zip archiveHelp->software Updates...->Available Software->Add Site.....
分类:
系统相关 时间:
2014-07-07 20:45:06
阅读次数:
311
Eclipse从svn上迁出项目的时候报以下的错误:SVN: '0x0040010b: Obtain Project Name' operation finished with error: Selected SVN connector library is not available or can...
分类:
其他好文 时间:
2014-07-07 20:34:09
阅读次数:
1988
iOS下做和UIImage相关功能有段时间,这里总结列下相关经验。1. 基本框架image IO image IO可以通过URL或者dataProvider来生成CGImageSourceRef,然后可以在source上获取第几张图片或者缩略图;根据http://www.mindsea.com/2....
分类:
移动开发 时间:
2014-06-30 13:00:30
阅读次数:
389
GNU Autotools can not only handle making (compiling and linking), distributing, transplanting source code for different platforms, but can also track ...
分类:
其他好文 时间:
2014-06-30 12:33:53
阅读次数:
400
We must have already been familiar with proprietary Fortran programming environments, for example,Compaq Visual Fortran IDE (which is actually a combi...
#include#includechar *find_char(char const *source_str, char const *desc_str);int main(void){ char *source_str = "ABCDEF"; char *desc_str = "MMD...
分类:
其他好文 时间:
2014-06-29 19:32:34
阅读次数:
171