码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
c++快速排序
1 #include 2 #include 3 using namespace std; 4 5 6 int RandomInRange(int start, int end) { 7 srand((unsigned)time(NULL)); 8 int value = ran...
分类:编程语言   时间:2014-06-29 13:00:43    阅读次数:294
MySQ学习笔记之十 NULL值处理
这是MySQL一大特殊之处。     概念上,NULL意味着“没有值”或“未知值”,且它被看作有点与众不同的值。为了测试NULL,你不能使用算术比较运算符例如=、     mysql> SELECT 1 = NULL, 1 != NULL, 1 NULL;     +----------+-----------+----------+----------+     | 1 = NULL ...
分类:其他好文   时间:2014-06-20 10:24:02    阅读次数:152
Java集合01----ArrayList的遍历方式及应用
Java集合01----ArrayList的遍历方式及应用 1.ArrayList的遍历方式 a.一般for循环(随机访问) Integer value = null; int size = list.size(); for (int i=0; i<size; i++) { value = (Integer)list.get(i); } b.增强型for循环(for...
分类:编程语言   时间:2014-06-20 10:22:41    阅读次数:240
剑指offer (5) 链表插入删除
我们在操作链表的时候,必须注意以下事项:1. 链表指针为NULL的情况2. 插入删除涉及到 链表第一个节点时,需要修改 链表的第一个节点:a. 因为 c语言都是传值的,如果需要修改一个变量,就必须通过 指向该变量的指针(即该变量的地址)例如:例如 修改 int a,则输入参数必须是 int* a, ...
分类:其他好文   时间:2014-06-07 11:19:08    阅读次数:216
在MFC中增加一个时间计时器消息事件
在MFC中增加一个时间计时器消息事件利用this->SetTimer(1,1000,NULL);开启计时器添加响应事件void Csqllink1Dlg::OnTimer(UINT_PTR nIDEvent) { CTime tm; tm=CTime::GetCurrentTime(); CWnd*...
分类:其他好文   时间:2014-06-07 09:58:30    阅读次数:224
Algorithm | Random
随机生成[0,n)中不重复的m个数。 1 class Random { 2 public: 3 Random(int n, int m):n(n), m(m) {} 4 void generate() { 5 srand(time(NULL)); 6 ...
分类:其他好文   时间:2014-06-07 08:42:38    阅读次数:178
使用SqlBulkCopy, 插入整个DataTable中的所有数据到指定数据库中
string sql="";dbhelper.ExecuteNonQuery(sql);DataTable dt = dbhelper.GetDataTable(sql);if (dt != null && dt.Rows.Count > 0){ SqlBulkCopy bcp = new SqlB...
分类:数据库   时间:2014-06-07 07:17:20    阅读次数:229
mysql不能插入中文
create table ordermeg(oid int primary key,cname varchar(50) not null,receivename varchar(50) not null,receiveadds varchar(50) not null,receivetel varc...
分类:数据库   时间:2014-06-07 06:23:31    阅读次数:234
UPDATE 时主键冲突引发的思考【转】
假设有一个表,结构如下:root@localhost : yayun 22:59:43> create table t1 ( -> id int unsigned not null auto_increment, -> id2 int unsigned not null default ...
分类:其他好文   时间:2014-06-05 15:22:16    阅读次数:240
leetcode--Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL./** *...
分类:其他好文   时间:2014-06-05 13:44:26    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!