题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=2516分析: 当石子个数为 fabonacii 数时,
为必败态。代码如下:LL fib[60] ;void init(){ int i; fib[0] = fib[1] = 1 ; f...
分类:
其他好文 时间:
2014-05-09 04:54:02
阅读次数:
344
面向对象:先抽象后具体抽象类也叫基类抽象函数:只有函数的定义,没有函数体的函数,语法:类必须定义为抽象类,才能调用抽象函数,抽象类里面可以没有抽象函数abstract
class Printer { abstract void fun();}抽象类不能生成对象,而抽象类通常被继承,继承的使用方...
分类:
编程语言 时间:
2014-05-09 04:15:09
阅读次数:
264
1 public class T008 { 2 public static void
main(String[] args) { 3 int[] num = { 3, 4, 5, 1, 2 }; 4
System.out.println(min(num, 5...
分类:
编程语言 时间:
2014-05-09 04:12:47
阅读次数:
326
protected void btnCrop_Click(object sender,
EventArgs e) { ...
分类:
其他好文 时间:
2014-05-09 04:02:32
阅读次数:
335
using System.Data;using System.Data.Sql;using
System.Data.SqlClient; protected void Page_Load(object sender, EventArgs e) {
SqlConn...
分类:
数据库 时间:
2014-05-09 04:01:32
阅读次数:
388
1.循环 1 public class T009 { 2 public static void
main(String[] args){ 3 System.out.println(fibonacci(3)); 4 } 5 public static
long ...
分类:
编程语言 时间:
2014-05-09 03:58:09
阅读次数:
270
//窗体加载完毕 void MyMessageBox_Loaded(object sender,
RoutedEventArgs e) { //启动定时期倒计时,多线程计时 //System.Threading....
分类:
编程语言 时间:
2014-05-09 03:27:00
阅读次数:
366
pthread_create()
创建线程,pthread_join()让线程一直运行下去。链接时要加上-lpthread选项。pthread_create中, 第三个参数为线程函数,定义如下:
void * heartbeat_thread() { ... }下面是main.c :#i...
分类:
编程语言 时间:
2014-05-08 23:55:54
阅读次数:
486
一、引入类型与值类型简介 值类型:直接存放于栈中,取的时候是直接取得值。(自定义对象)
引用类型:存在于托管堆中,取的时候取的是该对象的地址,然后用这个地址去托管堆中取值。(int,bool)二、在代码上的区别 修改时的区别 代码示例:
static void Main(string[...
分类:
其他好文 时间:
2014-05-08 23:28:29
阅读次数:
344
根据预处理标识符执行方法。Conditional 属性是 ConditionalAttribute
的别名,可应用于方法或属性类。通常用于DEBUG,如下则只有在debug的情况下会打印log。[Conditional("DEBUG")] public
static void Message(str...
分类:
其他好文 时间:
2014-05-08 22:52:46
阅读次数:
354