fopen后必须判断 FILE *p 是否返回NULLfopen打开文件后,一定要fclosefeof 判断文件是否到达最后对一个文件进行简单的加密解密操作#include #include #include #define S_KEY 10void code(const char * src , ...
分类:
其他好文 时间:
2014-09-05 15:50:31
阅读次数:
158
String path = @"X:\xxx\xxx"; //第一种方法 var files = Directory.GetFiles(path, "*.txt"); foreach (var file in files) Console.WriteLine(...
分类:
其他好文 时间:
2014-09-05 15:47:51
阅读次数:
123
重启了一下服务器,启动后就报以下错误了:Starting MySQL...The server quit without updating PID file [失败]lib/mysql/localhost.localdomain.pid).纠结了很久没找到解决办法,后来突然想到修改了mysql的配置文件“/usr/my.cnf”之前配置默认编码,在配置文件中添加了“default-characte...
分类:
数据库 时间:
2014-09-05 14:27:01
阅读次数:
344
典型的文件上传表单 文件上传操作public ActionResult Index(HttpPostedFileBase file)if (file != null){ string strpath = Server.MapPath("~/files/"+ file.FileName); //获.....
分类:
Web程序 时间:
2014-09-05 14:11:51
阅读次数:
195
阻止用户从未经授权的位置安装设备驱动程序。 组策略 。。。too long too see directly.what determins when a drivers i s load.specifying driver laod order./ load order group for file...
分类:
其他好文 时间:
2014-09-05 14:09:41
阅读次数:
222
以引入.pulltorefresh为例
下载zip,解压到桌面打开eclipse,File-Import-Existing Android Code Into Workspace选中library文件,导入到eclipse中打开此library,右键library,properties-Android-Library-勾选Is Library
打开你的程序后,右键你的主程序,prope...
分类:
移动开发 时间:
2014-09-05 13:03:01
阅读次数:
204
本来一直用java中的timer:
new Timer().schedule(new TimerTask() {
@Override
public void run() {
...
}
},2000);
不知道怎么回事,有时候执行不了。后来看网上有人说更推荐用Android的一种方式:
new Handler().postDelayed(new Runnabl...
分类:
移动开发 时间:
2014-09-05 13:01:41
阅读次数:
246
近来读书,做些笔记,来年好翻翻。
本文所使用的操作系统为 CentOS7.0,如果不想装双系统的可以装虚拟机,可以参考这里:
http://blog.csdn.net/alex_my/article/details/38142229
当然啦,直接装个再好不过了。
File I/O
1 file descriptor
//...
分类:
其他好文 时间:
2014-09-05 12:59:41
阅读次数:
331
1.下载jdk2.配置环境变量 (1)JAVA_HOME =C:\Program Files (x86)\Java\jdk1.8.0_11(2)classpath =.;%JAVA_HOME%\lib(3)Path =%JAVA_HOME%\bin;%JAVA_HOME%jre\bin---%Sys...
分类:
移动开发 时间:
2014-09-05 12:52:01
阅读次数:
176
shell脚本: syntax error near unexpected token elseif [ -f "$impDataFile" -a -f "$tagFile" ] ;then else #一开始左边缺了空格 echo "file is not exists"fi
分类:
其他好文 时间:
2014-09-05 12:51:01
阅读次数:
216