2003-08-31から1日間の記事一覧

#include #include #include #include int main(void) { Display *display; Window window; XSetWindowAttributes attres; XEvent event; display = XOpenDisplay(NULL); window = XCreateSimpleWindow( display, RootWindow(display, 0), 100, 100, 256, 25…

import javax.swing.*; public class HelloWorld extends JFrame { HelloWorld(String title) { super(title); setSize(100, 100); setLocation(10, 10); setDefaultCloseOperation(EXIT_ON_CLOSE); } public static void main(String[] argv) { HelloWorld …

#Include int main(int argc, char **argv) { GtkWidget *window; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(window); gtk_main(); return 0; } gcc -Wall hello.c `gtk-config --cflags` `gtk-config --libs`