java 实例化时调用了抽象方法或者class里面某个方法,如果子类有重写改方法,实际运行的是子类重写方法 运行结果: from childA classfrom childB classfrom Father class ...
分类:
编程语言 时间:
2016-11-18 12:05:57
阅读次数:
143
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:
其他好文 时间:
2016-11-18 12:02:01
阅读次数:
131
如果不是做项目遇到,我大概永远都不会知道12小时制的上午12点就是夜里零点,囧~(个人习惯24小时制) 首先区分12小时制和24小时制的对应关系,以下按照时间顺序列出了几个关键的时间点: 以下代码实现了两种时间之间的转换,直接从自己项目的源代码中截取,所以先解释下各个变量的意义: 记录自己学习的过程 ...
分类:
其他好文 时间:
2016-11-18 11:44:18
阅读次数:
234
//定义表结构 DataTable dt = new DataTable(); dt.Columns.Add("FactoryId"); 或dt.Columns.Add(new DataColumn("CODE", typeof(string))); dt.TableName = "TbFactor ...
分类:
其他好文 时间:
2016-11-18 09:46:37
阅读次数:
176
在kendo grid 里要想通过checkbox 实现多选和权限,我们就要通过templeate 和input 标签对kendo grid 进行自定义 1. 在column 里面加入一列checkbox 然后实现全选方法 as follow image: code: demo: http://do ...
分类:
其他好文 时间:
2016-11-18 07:27:04
阅读次数:
416
1.八个一换行没整明白。。。 2.老师上课讲了这个了 #include<stdio.h>int main(){ int b[10][10]; int i; int j; for(i=0;i<9;i++) for(j=0;j<9;j++) { b[i][j]=(i+1)*(j+1); } for(i= ...
分类:
其他好文 时间:
2016-11-18 07:13:26
阅读次数:
181
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost ...
分类:
其他好文 时间:
2016-11-18 07:08:53
阅读次数:
183