有关Java中类继承的二三事
不问不知道,一问才发现之前学得实在太水,好多东西都没怎么搞明白。
继承是什么
继承是面向对象的三个基本特征之一,它使得子类具有父类的属性和方法或者重新定义、追加属性和方法等。
用单片机蜂鸣器播放音乐
这是怎么一回事
是的,我又来水了。
话说回来,虽然暑假开始已经将近两周了,但是我们并没有回家。为什么呢?
你可知道这世上有一物唤作“小学期”吗?
每年暑假,我们学院大二的学生都会被拉到工训中心愉悦地学习课程,其名为——焊板子!(学会了,明天就进电子厂。)
好吧,其实正式名称应该是电子系统设计与创新基础训练,上面说的算是实训的一部分。在焊板子之外,我们要做的事情是通过学习各种案例理解其中的原理,最终自己编程实现想要的功能。
老师给我们提供了很多案例,不过根据观察,大家玩得最 High 的还是电子音乐,就是让蜂鸣器按指定的曲调发出声音。(电子系统设计?不,是 8-bit 音乐大赏。)
夏天的风和雨
快来点凉风吧
这几天还是和往常一样闷热,我有点怀疑自己是不是在蒸桑拿。正好考试周刚过,就躺在床上不动好了,既省力又不会被外面的酷暑打扰。
躺着是不可能就只是躺着的,经过考试的洗礼,我不禁对自己过去一段时间的生活和学习产生了深深的怀疑。(笑,希望不要又是死不悔改)。
把站点迁移到GitHub
起因
原因很简单,为了节省服务器经费~~(钱包空空)~~,服务器摆在那里,资源也没有充分利用起来。
BombLab实验
拆掉邪恶博士的炸弹
这是一个课程实验,感觉有点意思,就记录一下吧。
分析可能不准确,仅供参考。
邪恶博士的幽默感
/***************************************************************************
* Dr. Evil's Insidious Bomb, Version 1.1
* Copyright 2011, Dr. Evil Incorporated. All rights reserved.
*
* LICENSE:
*
* Dr. Evil Incorporated (the PERPETRATOR) hereby grants you (the
* VICTIM) explicit permission to use this bomb (the BOMB). This is a
* time limited license, which expires on the death of the VICTIM.
* The PERPETRATOR takes no responsibility for damage, frustration,
* insanity, bug-eyes, carpal-tunnel syndrome, loss of sleep, or other
* harm to the VICTIM. Unless the PERPETRATOR wants to take credit,
* that is. The VICTIM may not distribute this bomb source code to
* any enemies of the PERPETRATOR. No VICTIM may debug,
* reverse-engineer, run "strings" on, decompile, decrypt, or use any
* other technique to gain knowledge of and defuse the BOMB. BOMB
* proof clothing may not be worn when handling this program. The
* PERPETRATOR will not apologize for the PERPETRATOR's poor sense of
* humor. This license is null and void where the BOMB is prohibited
* by law.
***************************************************************************/
满满的中二之感,连我都看不惯了,解之。
由于我们并没有完整的源代码,只能通过汇编代码来尝试推出博士这个邪恶的刀客塔到底在炸弹里做了些什么手脚了。