save code

This commit is contained in:
Feast
2026-05-16 12:05:04 +08:00
parent a169ceb263
commit d092dfb4a6
23 changed files with 2291 additions and 1343 deletions
+19
View File
@@ -0,0 +1,19 @@
// =====================================================================
// 第 1 课:GUI 你好窗口 —— 老师完整答案
// 自己写完前不要偷看!卡住时再来对一下。
// =====================================================================
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main() {
Fl_Window *window = new Fl_Window(400, 300, "抽卡世界");
Fl_Box *box = new Fl_Box(50, 100, 300, 100, "欢迎来到抽卡世界!");
box->labelsize(24);
window->end();
window->show();
return Fl::run();
}