因为代码太多了,所以只能分两次发上来:各位看官请见谅啊/** * 根据频道完成频道分类布局 */ private void initTab() { tabContainer.removeAllViews(); int count=defaultChannels.size(); Layout...
分类:
其他好文 时间:
2014-09-14 23:29:07
阅读次数:
226
无疑是STL 中最大的一个头文件,它是由一大堆模板函数组成的。下面列举出中的模板函数:adjacent_find / binary_search / copy / copy_backward / count/ count_if / equal / equal_range / fill / fill_...
分类:
其他好文 时间:
2014-09-14 20:43:37
阅读次数:
280
");//返回第二个参数字符串在第一个字符串里出现的次数$int=substr_count("abcdeabcdeablkabd","ab");//返回第二个字符串在第一个字符串第一次出现的位置,第一个字符位置算0$int=strpos("asagaab","ab");//返回第二个字符串在第一个字...
分类:
Web程序 时间:
2014-09-14 17:59:37
阅读次数:
214
public class hhh{public static void main(String[]args){ String s1="hkdhskhegoihwhonfdsaaa"; int count=0; for(int x=0;x<s1.length();x++) { if('a'==s1.....
分类:
其他好文 时间:
2014-09-14 17:55:17
阅读次数:
204
class parent{ protected static int count=0; public parent() { count++; }}public class child extends paren...
分类:
其他好文 时间:
2014-09-14 16:33:57
阅读次数:
145
<script>
????function?Person(name?,?age){
????????this.name?=?name?;
????????this.age?=?age?;
????????this.say?=?function?(){
????????????retur...
分类:
Web程序 时间:
2014-09-14 12:56:47
阅读次数:
144
第七题求第10001个质数(用这个代码,我的笔记本大概算了40s):count=1num=3def findPrime(s): i=2 a=s while i<s/2: if s%i == 0: s=s/i break ...
分类:
其他好文 时间:
2014-09-13 22:45:16
阅读次数:
229
在自己还未明白自己大学应该怎么过,大学时光与我就要say goodbye了。之前一直想将自己将自己的大学三年(今年大四)总结一下,今天终于抽出时间来完成它了。今天回首自己大学三年,感觉自己算是浑浑噩噩的过来了。脑海里留下的仅仅只是一些零星的回忆,能记录下来的就更少了。但我想这也是我的人生的一段经历吧...
分类:
其他好文 时间:
2014-09-13 21:17:15
阅读次数:
212
题目:统计n个节点的二叉树的个数。
分析:组合,计数,卡特兰树...
分类:
其他好文 时间:
2014-09-12 20:47:14
阅读次数:
154
题目大意:输入n,统计有多少个n个结点的有根树,使得每个深度中所有结点的子结点数相同。结果模1000000007。思路:根据题意,每个结点的每个子树都是相同的。所以n结果为n-1的所有约数的结果加起来。示意图:代码如下: 1 #include 2 #include 3 #include 4 #...
分类:
其他好文 时间:
2014-09-12 20:32:24
阅读次数:
233