摘要:
一.程序设计:猫大叫一声,所有的老鼠都开始逃跑,主人被惊醒。要求:一要有联动性,老鼠和主人的行为是被动的。二考虑可扩展性,猫的叫声可能引起其他联动效应。答案:1.使用inerface设计:using System;using System.Collections.Generic;using System.Text;using System.Collections;class Program { s... 阅读全文
posted @ 2009-10-30 10:48
周枫
阅读(2811)
评论(2)
推荐(1)