各种算法
文章平均质量分 55
激萌の小宅
这个作者很懒,什么都没留下…
展开
-
C语言 CRC32校验算法
#include #include #include typedef signed char s8;typedef unsigned char u8;typedef signed short s16;typedef unsigned short u16;typedef signed int s32;typedef unsigned int u32;typedef sign原创 2016-01-20 22:41:13 · 16188 阅读 · 3 评论 -
对于单向链表的10几种常用算法(c语言)
如果要看C++版本的,请转https://blog.csdn.net/gs1069405343/article/details/90380355list.c文件如下#include "list.h"/*返回head链表POS节点的位置*/LINK list_moov_pos(LINK head,int pos){ LINK node = head; while(--p...原创 2016-01-06 21:11:58 · 499 阅读 · 0 评论 -
linux 下音频的录制与播放测试例子
main.c文件#include #include #include #include "sndtools.h"int main(int argc, char const *argv[]){ char *buf; int dwSize; if(!OpenSnd()){//打开声音设备 printf("Open sound device erro原创 2016-01-06 21:19:52 · 1700 阅读 · 2 评论 -
CRC16校验-MODBUS协议
#include #include const unsigned char auchCRCLo[]={ 0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2, 0xC6, 0x06, 0x07, 0xC7, 0x05, 0xC5, 0xC4, 0x04, 0xCC, 0x0C, 0x0D, 0xCD, 0x0F, 0xCF, 0xCE, 0x0E原创 2016-01-06 21:05:52 · 3245 阅读 · 1 评论 -
linux 下URL中 UTF-8编码、GB2312编码与汉字之间的转换
下面是UTF-8编码的转换代码#include #include #include /* 16进制字符表 */static const char c2x_table[] = "0123456789ABCDEF";/* 字符转16进制 */static unsigned char *c2x(unsigned what,unsigned char *where){ *wh原创 2016-01-07 19:59:57 · 10889 阅读 · 0 评论 -
对于单向链表的10几种常用算法(c++语言)
如果要看C语言的请转到https://blog.csdn.net/gs1069405343/article/details/50471736table.cpp文件#include "table.h"table::~table(){;} // 链表初始化void table::ListInit(LIST_DATA *head){ head->data.num ...原创 2019-05-20 19:00:21 · 401 阅读 · 0 评论 -
C# 窗体程序,简单的读写mysql数据库
新建工程,添加MySql.Data引用。添加database.cs文件using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using MySql.Data.MySqlClient;using Syste...原创 2019-10-05 17:15:37 · 1945 阅读 · 0 评论