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
js中函数执行的两种方式:一是通过调用运算符’()’,二是通过调用call或apply来动态执行。一、动态方法调用中指定this对象开发中我们往往需要在对象B中调用对象A的方法,这个时候就用到了apply()和call(),它们的第一个参数就是用于指定this对象,如果为null,则表明传入默认的宿...
分类:
移动开发 时间:
2015-04-03 10:52:53
阅读次数:
138
1. 可空类型修饰符(?): 引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空。 例如:string str=null; 是正确的,int i=null; 编译器就会报错。 为了使值类型也可为空,就可以使用可空类型,即用可空类型修饰符"?"来表示,表现形式为"T?" 例如:int?...
简单粗暴,直接上代码:
XmlDocument xmlDoc = new XmlDocument();
try
{
xmlDoc.Load(Help.basePath);
XmlNode root = xmlDoc.SelectSingleNode("//screenshot");
if (root != null)
{
...
operator new 应该内含一个无穷循环,并在其中尝试分配内存,如果它无法满足内存需求,就该调用new-handler。它也应该有能力处理0 bytes 申请。Class专属版本则还应该处理“比正确大小更大的(错误)申请”。operator delete 应该在收到null指针时不做任何事。C...
分类:
编程语言 时间:
2015-04-02 23:47:45
阅读次数:
169
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
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
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
publicbooleandoc2pdf(StringsrcFilePath,StringpdfFilePath){ActiveXComponentapp=null;Dispatchdoc=null;try{ComThread.InitSTA();app=newActiveXComponent("W...
分类:
其他好文 时间:
2015-04-02 20:36:24
阅读次数:
207
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