- 博客(3)
- 收藏
- 关注
原创 2021-10-18
C语言简单实现堆排序 #include <stdio.h> #include <stdlib.h> typedef struct { int *arr; int size; } HEAP; HEAP *HeapCreate(HEAP *pHeap, int size) { pHeap = malloc(sizeof(HEAP)); pHeap->arr = malloc((size + 1) * sizeof(int)); pHeap->size = siz
2021-10-18 08:48:57
144
原创 C#串口通信,把接收线程封装在类中进行回调
C#(winform)串口通信,用类实现数据接收新线程回调 【主要改进点】 1.该类创建了一个新线程进行数据接收,解决了官方SerialPort类在数据量大时,通过Textbox等控件显示会卡顿的问题。 2.数据接收通过Action回调函数的方式进行封装,增强了代码的复用性。在需要同时使用多个COM口时变得更方便。 【需要的引用】 using System; using System.IO.Por...
2020-03-01 01:45:58
4749
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅