C#中有泛型类、泛型方法、泛型接口、泛型委托。下面先介绍前3种类型。1.泛型类、泛型方法: 1 /// 2 /// 泛型类和泛型方法 3 /// 4 /// 5 class MyClass 6 { 7 public void Say(T ...
分类:
其他好文 时间:
2014-07-22 22:46:15
阅读次数:
203
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2014-07-22 22:43:14
阅读次数:
198
SELECT -- ' select * from `',TABLE_SCHEMA,'`.`',TABLE_NAME,'` into outfile ''/work/opdir/repair'''
-- concat('union all
-- select count(1) as count_, ''`',TABLE_SCHEMA,'`.`',TABLE_NAME, '`'' as tbna...
分类:
数据库 时间:
2014-07-22 22:39:35
阅读次数:
288
import java.util.Scanner;
public class bigLetterCount {
public static int CalcCapital(String str){
int count=0;
for(int i=0;i<str.length();i++){
if('A'<=str.charAt(i)&&str.charAt(i)<='Z')count...
分类:
其他好文 时间:
2014-07-22 22:34:12
阅读次数:
204
question:I am using SimpleTrigger to schedule a job which is supposed to run indefinitely (repeat count -1).And i am using JDBC store to persist the j...
分类:
其他好文 时间:
2014-07-22 00:27:38
阅读次数:
420
排列组合:C(m,n),m为给定数列,n为要从数列m中取元素的数量,GetResult()获取所有不重复的组合。 public class MathCombination { List list; int count = 0; private Math...
分类:
其他好文 时间:
2014-07-22 00:23:35
阅读次数:
173
G. Count the ColorsTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPainting some colored segments on a line, ...
分类:
其他好文 时间:
2014-07-22 00:23:34
阅读次数:
220
Unix系统性能监控工具之--SAR系统环境:操作系统:AIX5.3.9Oracle:Oracle10gR2SAR可用于监控Unix系统性能,帮助我们分析性能瓶颈。sar工具的使用方式为”sar[选项]intervar[count]”,其中interval为统计信息采样时间,count为采样次数。下文将说明如何使用sar获取以下性能分析..
分类:
其他好文 时间:
2014-07-21 19:44:52
阅读次数:
469
import Foundation
println("Hello, World!")
/*
for do While While Switch
*/
var arr = [1,2,3,4,5,7];
for i in arr{
println(" i is \(i)");
}
var count = arr.count;
for (var i = 0 ; i<count; ...
分类:
其他好文 时间:
2014-07-21 13:23:47
阅读次数:
190
使用EXP,IMP把A库中的数据按用户导入B库,也是先在B库建立表空间和对应的用户,导入后无任何报错信息。为了谨慎起见,把两个库的对象进行对比(selectobject_type,count(*)fromdba_objectswhereowner=‘owner_name‘groupbyobject_typeorderbyobject_type),结果真发现问题,A库中..
分类:
其他好文 时间:
2014-07-21 12:14:35
阅读次数:
215