kehuadong

2024年9月3日

红黑树

摘要: #include "common.h" typedef struct rb_node_t rb_node_t; struct rb_node_t { rb_node_t* m_parent; rb_node_t* m_left; rb_node_t* m_right; bool m_red; int 阅读全文

posted @ 2024-09-03 10:36 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

冒泡排序

摘要: #include "common.h" #define ASIZE(a) (sizeof(a)/sizeof(a[0])) void bunble_sort(int* a, int size) { for (int i = 0; i < size - 1; i++) { for (int j = s 阅读全文

posted @ 2024-09-03 10:17 kehuadong 阅读(3) 评论(0) 推荐(0) 编辑

java, gbk_2_utf8

摘要: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.lang.reflect.Method; import java.lang.reflect.Constr 阅读全文

posted @ 2024-09-03 04:18 kehuadong 阅读(6) 评论(0) 推荐(0) 编辑

模拟SPI

摘要: #include "mcu_io.h" #include "mcu_timer.h" #include "mcu_spi.h" void mcu_spi_init(mcu_spi_t* spi, uint8_t cs_pin, uint8_t clk_pin, uint8_t mosi_pin, u 阅读全文

posted @ 2024-09-03 02:13 kehuadong 阅读(5) 评论(0) 推荐(0) 编辑

导航