程式語言 - The Fast Light Tool Kit (FLTK) - CPP - Hello, world!



參考資訊:
https://www.fltk.org/doc-1.3/index.html

main.cpp

#include <FL/Fl.H>
#include <FL/Fl_Window.H>
 
int main() {
    Fl_Window *window = new Fl_Window(320, 240, "Hello, world!");

    window->show();
    return Fl::run();
}

編譯、執行

$ g++ main.cpp -o main -lfltk
$ ./main