father||-html|-directivechild||-html|-directive在child的html中,引用father的指令即可。
分类:
其他好文 时间:
2015-10-28 01:42:43
阅读次数:
139
接下来的三点是我从百度知道上引用来的。嘻嘻~,感觉不错。1.从对象的内存角度来理解.假设现在有一个父类Father,它里面的变量需要占用1M内存.有一个它的子类Son,里面的变量需要占用0.5M内存.现在通过代码来看看内存的分配情况:2.f = new Father();//系统将分配1M内存.So...
分类:
编程语言 时间:
2015-10-27 23:43:48
阅读次数:
191
从今天起,切换回windows,从新做skbbbs,再次聆听孙胜利老师的教诲。-- 查看字符编码show variables like 'charset%';use sfkbbs;-- 创建数据库create TABLE sfk_father_module(id int not null PRIMA...
分类:
编程语言 时间:
2015-10-23 00:01:51
阅读次数:
261
New stuff learnt - Union-Find. Simpler and more elegant than I thought.class Solution { unordered_map father; int find(int val) { if(!...
分类:
其他好文 时间:
2015-10-21 14:08:51
阅读次数:
191
Java字段初始化 首先初始化块进行初始化,然后构造方法进行赋值,最后字段初始值赋值。当多个类之间有继承关系时,创建子类对象会导致父类初始化块的执行。请自行编写示例代码验证以上结论。(博客作业)package text1;class father { public static int n=56;....
分类:
编程语言 时间:
2015-10-17 22:05:53
阅读次数:
199
原文 Last Christmas, the circus owner, Jimmy Gates, decided to take some presents to a children‘ hospital. Dressed up as Father Christmas and accompanied by a ‘guard of honour‘ of six pretty girls,...
分类:
其他好文 时间:
2015-10-16 20:55:46
阅读次数:
511
看了一篇文章,大概懂了什么叫依赖注入了。举例:class Human{ Father father; public Human(){ father = new Father(); }}在这段代码中,Human类包含一个Father的实例,我们称Father为Human的一个依赖,这是情况...
分类:
其他好文 时间:
2015-09-25 11:14:29
阅读次数:
183
- 表示上一次所在目录,~ 通常表示当前用户的"home"目录。使用 pwd 命令可以获取当前所在路径(绝对路径)。新建文件:touch test创建目录:mkdir -p father/son/grandson复制文件:cp test father/son/grandson复制目录:cp -r f...
分类:
系统相关 时间:
2015-09-19 22:41:16
阅读次数:
259
水题spfa排序从大到小就行了=-=// 1 type 2 node=record 3 f,t,l:longint; 4 end; 5 var n,m,i,j,fx,fy,num,ans:longint; 6 b:array[0..20001] of node; 7 father:a...
分类:
其他好文 时间:
2015-09-17 17:27:12
阅读次数:
175
题意:每条边过且只过一次,问至少要画几笔才能全部边都经过。孤立的点忽视。#include using namespace std;const int M=100000+10;int gree[M];int father[M];int rank1[M];int save[M];bool used[M]...
分类:
其他好文 时间:
2015-09-05 12:24:40
阅读次数:
149