码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
shell--字符串是否为空
b1=b2=""b3="hello"if [[ -n "${b3}" ]]then echo "not null"else echo "null"fib1 nullb2 nullb3 not null-n str 字符串长度非零
分类:其他好文   时间:2014-06-13 00:15:10    阅读次数:241
DBOperate.cs
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Data;usingSystem.Data.SqlClient;usingSystem.Configuration;///<summary>///DBOperate的摘要说明///</summary>publicclassDBOperate{privatestaticSqlConnectioncon=..
分类:数据库   时间:2014-06-10 23:15:36    阅读次数:314
Flex控制用户可输入到文本字段中的字符集
指示用户可以输入到控件的字符集。如果restrict属性的值为null,则可以输入任何字符。如果restrict属性的值为空字符串,则不能输入任何字符。此属性只限制用户交互;脚本可以将任何文本放入文本字段中。如果restrict属性的值为字符串,则只能在文本字段中输入该字符串中的字符..
分类:其他好文   时间:2014-06-10 22:57:29    阅读次数:249
编程Tips
三元运算符Vb中的iif(expr,truepart,falsepart)和C#中的expr?truepart:falsepart.无论expr的结果是true还是false,true/falsepart都会被执行.所以不能写类似于obj!=null?obj.name:string.empty.tr...
分类:其他好文   时间:2014-06-10 21:38:50    阅读次数:212
java:I/O 根据用户输入反馈信息
import java.io.*;class userInputIO{ //Java中成员变量有默认初始化,也就是如果不显式设置初始值的话就会被初始化为其类型的默认值(0、false、null等)。 private BufferedReader buffered...
分类:编程语言   时间:2014-06-10 20:15:03    阅读次数:250
数据库2014年6月10日11:13:10
SQL语句创建数据库:create table student(id int not null primary key,number nvarchar not null,name nvarchar not null,brithday DateTime default getdate(), adres...
分类:数据库   时间:2014-06-10 19:48:24    阅读次数:284
MFC获取系统当前时间
1.使用CTime类 CString str; //获取系统时间 CTime tm; tm=CTime::GetCurrentTime(); str=tm.Format("现在时间是%Y年%m月%d日 %X %H:%M:%S");MessageBox(str,NULL,MB_OK);%a...
分类:其他好文   时间:2014-06-10 19:46:24    阅读次数:337
【leetcode】sort list
问题:对链表进行排序,要求时间复杂度为NlogN。归并排序。 inline ListNode* getMidle(ListNode *head){ if(NULL == head || NULL == head->next) return head; ListNode *pslow = head; ListNode *pfast = head; while (pfast->next...
分类:其他好文   时间:2014-06-10 17:35:56    阅读次数:282
【leetcode】reverse Nodes in k-groups
问题: 给定一个链表的头指针,以及一个整数k,要求将链表按每k个为一组,组内进行链表逆置。少于k个的部分不做处理。 分析: 个人觉得问题的重点是熟悉链表的就地逆置操作,就是头插法。其他的考察点如果还有的话,就的细心程度。 实现: void reverseList(ListNode *&pre, ListNode *head) { ListNode *tail = NULL; w...
分类:其他好文   时间:2014-06-10 17:25:45    阅读次数:305
SQL自增长的数据插入
--子增长的插入 /*创建表*/ create table teacher ( id int identity(1,1) primary key not null, name varchar(20) ) select * from teacher/*关闭自增长*/SET IDE...
分类:数据库   时间:2014-06-10 12:21:35    阅读次数:243
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!