文章列表
首先进行分析:
思路:
先看下过程:猫叫->|人醒
|老鼠跑
所以我们可以给猫写个事件,这个事件由猫叫来触发,而人和老鼠中的某个方法
人醒和老鼠跑这两个方法注册到猫这个事件上就行了
结果,猫叫-人醒、老鼠跑
//public delegate void CatCallEventHandler(object sender, EventArgs e);
/// <summary>
/// 猫类
/// </summary>
class Cat
{
...
- 2009-10-11 21:43
- 浏览 3638
- 评论(0)
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class MyEclipseGen {
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http ...
- 2009-08-26 00:06
- 浏览 949
- 评论(0)
<div id="slide">
<a href="#" id="this_a"><img src="images/1.jpg" id="this_pic" /></a>
<ul id="pic_list">
<li><a href="http://www.qq.com"><img src="images/1.jpg" alt="" ...
- 2009-08-18 13:41
- 浏览 921
- 评论(0)