技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2013年8月28日 #

函数式C代码

摘要: 代码如下:#include #include typedef char String[32];typedef FILE* File;typedef struct _Employee { String name; int age; int salary; struct _Employee *next;} *Employee;typedef void (*Callback)(Employee);/* High Order Functions */void foreach(Employee e, Callback fn) { Emplo... 阅读全文

posted @ 2013-08-28 13:13 codestyle 阅读(263) 评论(0) 推荐(0)