摘要:        
示例一 #include <stdio.h> #include <string.h> #include <stdlib.h> // 定义子系统A typedef struct subsystemA { void (*operationA)(struct subsystemA* subsystem);    阅读全文
posted @ 2024-03-28 17:28
starc的miao
阅读(64)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <stdio.h> #include <string.h> #include <stdlib.h> // 定义业务处理者抽象类 typedef struct Handler { struct Handler* nextHandler; void (*handleRequest)(s    阅读全文
posted @ 2024-03-28 16:56
starc的miao
阅读(10)
评论(0)
推荐(0)
        
            
        
        
摘要:        
静态结构体数组式构建 链表式构建 链接式构建 #include <stdio.h> #include <stdlib.h> #include <string.h> // 加 double fun_add(double data_front, double data_back) { return da    阅读全文
posted @ 2024-03-28 16:19
starc的miao
阅读(21)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Interface_t { /*初始化外设USB、SPI、IIC等*/ void (*init_peripheral)(void *obj); /*初始    阅读全文
posted @ 2024-03-28 15:39
starc的miao
阅读(11)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <stdio.h> #include <string.h> #include <stdlib.h> // 定义抽象接口 typedef struct interface_t { struct interface_t *(*clone)(void *obj); void (*set)    阅读全文
posted @ 2024-03-28 15:03
starc的miao
阅读(22)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号