本文转载自忙碌的布谷鸟如何使用Connection对象连接数据库?对于不同的.NET数据提供者,ADO.NET采用不同的Connection对象连接数据库。这些Connection对象为我们屏蔽了具体的实现细节,并提供了一种统一的实现方法。Connection类有四种:SqlConnection,O...
分类:
数据库 时间:
2014-05-19 08:47:45
阅读次数:
389
1,SEGMENT_VARIABLE(USB_bcdDevice, U16, Code) =
0x0100;code /Code segment
的作用是告诉单片机,我定义的数据要放在ROM(程序存储区)里面,写入后就不能再更改,其实是相当与汇编里面的寻址MOVC因为C语言中没办法详细描述存入的是R...
分类:
编程语言 时间:
2014-05-19 08:26:20
阅读次数:
4936
把启动命令放到/etc/rc.d/rc.local文件里这样就可以每次启动的时候自动启动服务了,例如对于apache,编译好apache后会在安装目录的bin下生成apachectl文件,这是个启动脚本,我们只需要把这个命令加到rc.local里就可以了(suse没有rc.local。SUSE是可以...
分类:
系统相关 时间:
2014-05-19 07:31:30
阅读次数:
379
本文内容来自《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
//#define LOCAL#include#includeusing namespace
std;int const MAX_N=10005;int const MAX_M=100;int const INF=100000000;int
N,M,x[MAX_N],lb,ub;//判断是否满足条件...
分类:
其他好文 时间:
2014-05-18 19:38:50
阅读次数:
378
先序遍历和中序遍历非递归代码:#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)下载安装p4merge2)安装git下面是配置p4merge为git
mergetool的步骤1. /usr/local/bin下创建extMerge文件:$ cat >>
/usr/local/extMerge#!/bin/sh/Applications/IDE/p4merge.ap...
分类:
其他好文 时间:
2014-05-17 21:41:46
阅读次数:
354