码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
数据库操作(一)
drop table zmt_s_c;drop table zmt_student;drop table zmt_course;create table zmt_student(sno char(4) primary key not null,sname nchar(10) not null,sex...
分类:数据库   时间:2015-04-03 10:55:35    阅读次数:158
S1:动态方法调用:call & apply
js中函数执行的两种方式:一是通过调用运算符’()’,二是通过调用call或apply来动态执行。一、动态方法调用中指定this对象开发中我们往往需要在对象B中调用对象A的方法,这个时候就用到了apply()和call(),它们的第一个参数就是用于指定this对象,如果为null,则表明传入默认的宿...
分类:移动开发   时间:2015-04-03 10:52:53    阅读次数:138
C#基础——C#中问号的使用
1. 可空类型修饰符(?): 引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。 例如:string str=null; 是正确的,int i=null; 编译器就会报错。 为了使值类型也可为空,就可以使用可空类型,即用可空类型修饰符"?"来表示,表现形式为"T?" 例如:int?...
分类:Windows程序   时间:2015-04-03 10:51:31    阅读次数:135
C# winform 查找指定节点值
简单粗暴,直接上代码: XmlDocument xmlDoc = new XmlDocument(); try { xmlDoc.Load(Help.basePath); XmlNode root = xmlDoc.SelectSingleNode("//screenshot"); if (root != null) { ...
分类:Windows程序   时间:2015-04-03 09:39:52    阅读次数:145
Effective C++ -----条款51:编写new 和delete 时需固守常规
operator new 应该内含一个无穷循环,并在其中尝试分配内存,如果它无法满足内存需求,就该调用new-handler。它也应该有能力处理0 bytes 申请。Class专属版本则还应该处理“比正确大小更大的(错误)申请”。operator delete 应该在收到null指针时不做任何事。C...
分类:编程语言   时间:2015-04-02 23:47:45    阅读次数:169
java中23种设计模式之18-原型模式(Prototype pattern)
class Something{ public String something=null;}class Prototype implements Cloneable{ private String name; public Something aSomething=new Something();...
分类:编程语言   时间:2015-04-02 22:24:14    阅读次数:229
java中23种设计模式之12-装饰模式(decorator pattern)
class Girl{ public void showAppearance() { System.out.println("the girl: face without make up"); } }class TakeFlower extends Girl{ Girl girl=null; pu....
分类:编程语言   时间:2015-04-02 22:08:11    阅读次数:173
java中23种设计模式之17-状态模式(state pattern)
interface State{ public void handle(StateMachine statemachine);}class Eat implements State{ StateMachine statemachine=null; public void handle(StateMa...
分类:编程语言   时间:2015-04-02 22:07:04    阅读次数:167
Jacob操作office文档(Word,PPT,Excel)
publicbooleandoc2pdf(StringsrcFilePath,StringpdfFilePath){ActiveXComponentapp=null;Dispatchdoc=null;try{ComThread.InitSTA();app=newActiveXComponent("W...
分类:其他好文   时间:2015-04-02 20:36:24    阅读次数:207
leetcode:Binary Tree Postorder Traversal
class Solution { public: vector postorderTraversal(TreeNode *root) { vector res; stack>s; TreeNode *p = root; while(p!=NULL||!s.empty()) { while...
分类:其他好文   时间:2015-04-02 19:02:48    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!