父类一个virtual方法,一个普通方法;子类复写virtual,同时具有同名普通方法(使用new)。则Parent p = new Son();产生有趣结果: class Program { static void Main(string[] args) { Parent p = new Son(); ... Read More
posted @ 2008-02-28 18:37 包建强 Views(439) Comments(0) Diggs(0) Edit
1.一个整型数组,知道长度,里面存放有:负数/正数/零,请求"子串之和最大"的子串,函数返回该子串之和.函数形式: int f(int* array, int length); 举例: array = {7,6,3,-10,2,-8,6} 和最大的子串为: 7 + 6 + ... Read More
posted @ 2008-02-28 18:29 包建强 Views(694) Comments(0) Diggs(0) Edit