Linux GTK Hello,World

时间:2014-05-25 20:14:10   收藏:0   阅读:314
bubuko.com,布布扣
 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 }
bubuko.com,布布扣

 

Linux GTK Hello,World,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!