Linux GTK Hello,World
时间:2014-05-25 20:14:10
收藏:0
阅读:314
1 #include <gtk/gtk.h> 2 3 int main(int argc, char **argv) 4 { 5 GtkWidget *window; 6 gtk_init(&argc, &argv); 7 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 8 gtk_window_set_title(GTK_WINDOW(window),"Hello,World"); 9 gtk_widget_show(window); 10 gtk_main(); 11 12 return 0; 13 }
评论(0)