-- 修改表中的字段的长度ALTER TABLE `sfkbbs`.`sfk_father_module` CHANGE COLUMN `module_name` `module_name` VARCHAR(250) NULL DEFAULT NULL COMMENT '父板块名字' ;
分类:
数据库 时间:
2016-01-30 02:23:00
阅读次数:
238
父类package com.hanqi;public class father { public father (){ //System.out.println("父类的构造函数"); } private String x1; private St...
分类:
其他好文 时间:
2016-01-20 20:53:28
阅读次数:
208
父类代码: 1 public class Father { 2 3 4 private String name;//姓名 5 6 private int age;//年龄 7 8 //吃饭的方法 9 public void eat(){...
分类:
其他好文 时间:
2016-01-20 19:02:11
阅读次数:
128
4、类的组合使用:类的组合使用,就是类里边的实例变量是自己定义的类。用法与普通类使用一样。例子:family.h#import #import "Father.h"#import "Mother.h"#import "Son.h"@interface Family : NSObject{ //fat...
分类:
其他好文 时间:
2016-01-10 09:21:10
阅读次数:
203
/*并查集 */#include #include #include #define N 100010#define INF 0x3f3f3f3fint father[N],a[N];int find(int x){ return x==father[x]?x:(father[x]=f...
分类:
其他好文 时间:
2016-01-09 16:38:52
阅读次数:
126
public class Father { public void print() { System.out.println("Father:print()"); }}public class Son extends Father{ // 方法的覆盖:子类重写父类的同...
分类:
编程语言 时间:
2016-01-03 17:32:21
阅读次数:
138
继承:子类可以使用父类非私有的成员变量和方法public class Father { public String name; public String bloodType; private int age; public void work() { ...
分类:
编程语言 时间:
2016-01-03 17:18:15
阅读次数:
140
方法的覆盖:子类继承父类,子类重写父类的同名方法。覆盖的原则:1. 方法的参数必须跟父类保持一致2. 子类方法的修饰符的范围必须大于等于父类方法同名的修饰符(public > private)public class Father { public void print() { ...
分类:
编程语言 时间:
2016-01-03 17:08:59
阅读次数:
139
通过一次dfs求出dp(x)表示节点x考虑了x和x的子树都没成功充电的概率, dp(x) = (1-p[x])π(1 - (1-dp[son])*P(edge(x, son))。然后再dfs一次考虑节点x子树以外对节点x的贡献, 通过x的father算一算就可以了.O(N)-------------...
分类:
其他好文 时间:
2016-01-03 15:09:04
阅读次数:
169
class Father{ protected void methodA(){ //do something } private void methodB(){//do something }}class Child:Father{}那么Child child=new Child()...
分类:
编程语言 时间:
2016-01-01 14:55:35
阅读次数:
134