整理教材示例:项目 1 任务 2、项目 4 任务 1 和 3、项目 5 任务 1

- 界面取自配套参考工程,用设计器引擎按书上表格改控件名(label1 → lbl_port 等),
  去掉 BOM、换行统一为 LF;代码按书整理,修正 boolIsOpen 等印刷错误
- 测试:所有示例都能编译(10 个),以及计算器 / 多态、红外对射、报警灯、火焰的行为测试

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-22 11:29:37 +08:00
1 parent 8feda289de
commit 4c53caf7fa
22 files changed
+1101 -7

No files matched your search

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace C_基础
{
class People//定义一个父类People
{
public virtual void Speak(TextBox Txtbox,string name)//定义一个虚方法,用来表示人类的说话语言
{
Txtbox.Text += name;//向控件中输出名字
}
}
}