save code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user