摘要:
在C语言中,函数名竟然可以和struct类型名相同。看下面的程序。定义了struct foo; 和 void foo(struct foo *)两个函数。 #include <stdio.h>struct foo { int a; int b;};void foo(struct foo *f){ printf("%d, %d", f->a, f->b);}int main(){ struct f... 阅读全文
posted @ 2011-05-16 15:12 天地玄黄 阅读(1604) 评论(0) 推荐(0)
浙公网安备 33010602011771号