摘要:
示例一 #include <stdio.h> #include <string.h> #include <stdlib.h> // 定义子系统A typedef struct subsystemA { void (*operationA)(struct subsystemA* subsystem); 阅读全文
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> // 定义业务处理者抽象类 typedef struct Handler { struct Handler* nextHandler; void (*handleRequest)(s 阅读全文
摘要:
静态结构体数组式构建 链表式构建 链接式构建 #include <stdio.h> #include <stdlib.h> #include <string.h> // 加 double fun_add(double data_front, double data_back) { return da 阅读全文
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Interface_t { /*初始化外设USB、SPI、IIC等*/ void (*init_peripheral)(void *obj); /*初始 阅读全文
摘要:
#include <stdio.h> #include <string.h> #include <stdlib.h> // 定义抽象接口 typedef struct interface_t { struct interface_t *(*clone)(void *obj); void (*set) 阅读全文