#include <stdio.h>
void f()
{
puts("FUnction");
}
#define f() puts("Macro")
int main()
{
f();
f ();
(f) ();
return 0;
}
-------------------------------------------------------------------------------------------------------------------
#include <stdio.h>
int main (int argc, char **argv)
{
printf("%d, %d\n",sizeof('J'),sizeof(char));
return 0;
}
via
两段c代码
Posted by Unknown at 1:26 AM 0 comments
gtk笔记
apt-get install libgtk2.0-dev
gtk_init (&argc, &argv);
gtk_main()
每个gtk程序都会调用上面这两个函数
GUI库一般都是event driven的,那些设计上就有面向对象特性的语言在这方面占优势.
signals
Events
Posted by Unknown at 1:09 AM 0 comments
Subscribe to:
Posts (Atom)