2014年9月11日
摘要: 1 2 3 4 5 上传图片 6 7 8 9 上传图片预览10 11 *只允许上传jpg|png|bmp|pjpeg|gif格式的图片12 请选择图片:13 14 15 16 文件不存在!";26 exit;27 }28 29 if($file['siz... 阅读全文
posted @ 2014-09-11 09:08 IronMan_ 阅读(122) 评论(0) 推荐(0) 编辑
摘要: oec2003居中的DIV 阅读全文
posted @ 2014-09-11 09:05 IronMan_ 阅读(195) 评论(0) 推荐(0) 编辑
  2014年7月7日
摘要: 1 阅读对象需要操作mysql数据库的c语言开发人员。2 lstorage功能封装了mysql操作的主要功能,并对其进行了一定简化。3 lstorage框架结构3.1 组件列表组件名称组件类型功能说明libstorage.so动态库storage.h头文件函数声明datastruct.h头文件数据结... 阅读全文
posted @ 2014-07-07 15:32 IronMan_ 阅读(816) 评论(0) 推荐(0) 编辑
  2014年6月10日
摘要: #include "GetInfo.h"char szdomain[64];int GetInfoToWrite(char* path, char* domain,Write_t* pwrite);int SearchForContent(char* FilePath,Write_t *pwrite... 阅读全文
posted @ 2014-06-10 23:12 IronMan_ 阅读(296) 评论(0) 推荐(0) 编辑
  2014年5月7日
摘要: #include #include void DataSwap(int* data1, int* data2) { int temp = *data1; *data1 = *data2; *data2 = temp; }void insertSort(int arr[],i... 阅读全文
posted @ 2014-05-07 16:08 IronMan_ 阅读(170) 评论(0) 推荐(0) 编辑
  2014年4月21日
摘要: int a = 0; 全局初始化区 char *p1; 全局未初始化区 main() { int b; 栈 char s[] = "abc"; 栈 char *p2; 栈 ... 阅读全文
posted @ 2014-04-21 16:32 IronMan_ 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 下面的程序有什么问题?void GetMemory( char *p ){ p = (char *) malloc( 100 );}void Test( void ) { char *str = NULL; GetMemory( str ); strcpy( str, "hello world" ... 阅读全文
posted @ 2014-04-21 14:59 IronMan_ 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 1. 无名管道(PIPE):管道是一种半双工的通信方式,数据只能单向流动,而且只能在具有亲缘关系的进程间使用。进程的亲缘关系通常是指父子进程关系。2. 有名管道(named pipe):有名管道也是半双工的通信方式,但是他允许无亲缘关系的进程间通信。3. 信号量(semophore):信号量是一种计... 阅读全文
posted @ 2014-04-21 09:57 IronMan_ 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 定义: 进程是具有一定独立功能的程序关于某个数据集合上的一次运行活动,是系统进行资源分配和调度的一个独立单位。 线程是进程的一个实体,是CPU调度和分派的基本单位,他是比进程更小的能独立运行的基本单位,线程自己基本上不拥有系统资源,只拥有一点在运行中必不可少的资源(如程序计数器,一组寄存器和栈... 阅读全文
posted @ 2014-04-21 09:25 IronMan_ 阅读(205) 评论(0) 推荐(0) 编辑
  2014年2月24日
摘要: 在网络协议的实际运用中 我们经常会遇到抓取HTTP协议的request中的内容(前后固定规律):例如搜索引擎发出的请求中包含的关键字,经分析后会发现其规律的所在位置。以下是从字符串中抠出你想要的关键字内容代码:有错误的地方请大家指正(gcc中编译运行通过) 谢谢#include #include #... 阅读全文
posted @ 2014-02-24 22:39 IronMan_ 阅读(831) 评论(0) 推荐(0) 编辑