普通排序:直接分配一个同等大小的数组,反向copy即可.char* Reverse(char*
s){ //将q指向字符串最后一个字符 char* q = s ; while( *q++ ) ; q -= 2 ; //分配空间,存储逆序后的字符串。
char* p = newchar[sizeof(...
分类:
其他好文 时间:
2014-05-12 16:30:14
阅读次数:
338
Android 加载项目失败: sdk/build-tools/android-4.4.2/aapt:
error while loading shared libraries: libz.so.1: cannot open shared object file:
No such file or ....
分类:
移动开发 时间:
2014-05-06 09:19:19
阅读次数:
418
因为对于任何句柄 ( file descriptor ) select
函数都能检测出其状态变化,对于用于 listen 的 socket 也是一样。只要把用于 listen 的 socket 加入 ( FD_SET ) 到
select 检测的集合里,当有连接到来时 select 就能判断到。因为...
分类:
其他好文 时间:
2014-05-06 01:07:16
阅读次数:
271
虽然在操作之前作过一些测试,但主要考虑脚本的正确与否以及对数据库对象的影响。并没有完全在实际系统上运行。这也成为后来出现的一个问题没有预计到的根源。毕竟比较早的版本我没有用过:)。那就是8.0.6的exp工具并支持到处数据到多个文件,file=file1,file2不能使用,而且也不清楚老的hp-u...
分类:
数据库 时间:
2014-05-06 00:59:44
阅读次数:
478
public static void readAsFile(InputStream inStream,
File file) throws Exception {//读取网络InputStream FileOutputStream outStream = new
FileOutput...
分类:
其他好文 时间:
2014-05-06 00:28:20
阅读次数:
376
一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument
xml=new
XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo...
分类:
其他好文 时间:
2014-05-05 23:59:47
阅读次数:
347
#include #include #include int main(int argc,char
**argv){ FILE *fp_src,*fp_des; char buf[128]; int num; if(argc!=3) {
printf("t...
分类:
其他好文 时间:
2014-05-02 16:06:36
阅读次数:
562
shell是一个命令解释器;shell分为交互式shell和非交互式shell;
交互式shell就是命令行一问一答;非交互式shell是像shell文本那样,一次解析文本,
并未在命令行给我们作出回答。shell又分为登陆式shell和非登录式shell; 主要区分于是否输入用户名和密码,输入用户...
分类:
其他好文 时间:
2014-05-02 15:08:13
阅读次数:
256
UIView的常见属性 1 @property(nonatomic,readonly)
UIView *superview; 2 获得自己的父控件对象 3 4 @property(nonatomic,readonly,copy) NSArray
*subviews; 5 获得自己的所有子控件对象.....
分类:
其他好文 时间:
2014-05-02 14:53:07
阅读次数:
249
#include #include float get_cpu_clock_speed(){ FILE
*fp; char buffer[1024]; size_t bytes_read; char *match; float clock_speed;
fp=fo...
分类:
其他好文 时间:
2014-05-02 14:20:39
阅读次数:
392