本文内容来自《pointers on C》栈的接口/* Interface for a stack
module */#define STACK_TYPE intvoid push(STACK_TYPE value);void
pop(void);STACK_TYPE top(void);in...
分类:
其他好文 时间:
2014-05-18 20:37:48
阅读次数:
509
Form1.cs[csharp]view
plaincopyusingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem....
分类:
其他好文 时间:
2014-05-18 20:04:33
阅读次数:
362
日志框架:提供日志调用的接口,实际的日志输出委托给日志系统实现。JCL(Jakarta
Commons
Logging):比较流行的日志框架,很多框架都依赖JCL,例如Spring等。SLF4j:提供新的API,初衷是配合Logback使用,但同时兼容Log4j。日志系统:负责输出日志Log4j:较...
分类:
编程语言 时间:
2014-05-18 19:29:59
阅读次数:
370
先序遍历和中序遍历非递归代码:#include #include using
namespace std;typedef struct BinaryTree { int data; struct BinaryTree *rchild,
*lchild;}BinaryTree;int cr...
分类:
其他好文 时间:
2014-05-17 21:56:50
阅读次数:
264
System.Data.Entity.DbFunctions.DiffDays(cs.StartTime.Value,DateTime.Now)
== 0//只获取当天ORXX.StartTime.Value.Date.Equals(DateTime.Now.Date)//只获取当天
分类:
其他好文 时间:
2014-05-17 21:46:34
阅读次数:
2805
mysql_affected_rows: 得到 MySQL 最后操作影响的列数目。
mysql_close: 关闭 MySQL 服务器连接。 mysql_connect: 打开 MySQL 服务器连接。 mysql_create_db:
建立一个 MySQL 新数据库。 mysql_data_see...
分类:
数据库 时间:
2014-05-17 21:42:27
阅读次数:
268
取的文件大小1.int fd = open("data.txt",O_RDONLY); int
len = lseek(fd,0,SEEK_END);2.structstatsb; if ((fstat(fd, &sb)) == -1) {
perror("fstat"); }sb.st_size3...
分类:
编程语言 时间:
2014-05-17 21:24:29
阅读次数:
267
在研究了IOS中几种数据存储的技术 (1)XML属性列表 —— PList
(2)NSKeyedArchiver 归档 (3)Preference(偏好设置) (4)SQLite3 (5)Core
Data(以面向对象的方式操作数据库SQLite) 之后,比较有心得的体会:虽然通过文件...
分类:
移动开发 时间:
2014-05-17 21:05:04
阅读次数:
494
5.使用spring注解注入service,DAOaction:@ParentPackage(value =
"struts-default")@Namespace("/")@Controller@Scope("prototype")public class
BookAction extends A...
分类:
其他好文 时间:
2014-05-17 20:52:45
阅读次数:
218
近来上一个项目想在Eclipse
RCP中使用Spring,在网上Google了一下发现这方面的材料比较少,晓得Spring自个有个Spring-OSGI的项目,能够在Spring中装备OSGI效劳。但是,我仅仅想在RCP中引进Spring来管理Java
Bean,不想去研讨那个东西。所以,看看有没...
分类:
编程语言 时间:
2014-05-17 18:15:05
阅读次数:
450