C/C++
nichael99
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
子类,父类函数调用
当子类继承父类时,是执行子类函数,还是父类函数.原创 2022-10-11 17:01:19 · 169 阅读 · 0 评论 -
多线程信号量控制
代码关键解释 主线程控制信号量+1,这就是sem_post的作用。 子线程等待信号量,如果不>0,则一直等待,一旦得到信号量是大于0的,代码继续向下执行,并且把信号量-1,这就是sem_wait的作用。 #include #include #include #include #include #include void *thread_function(voi原创 2012-12-13 14:05:45 · 339 阅读 · 0 评论 -
vsprintf and vsnprintf
尽量使用vsnprintf,否则可能会带来buffer拷贝的时候更改未知su原创 2014-04-18 09:26:41 · 3576 阅读 · 0 评论 -
堆排序算法
// HeapSort.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include void BuildHeap(int a[], int count, bool minHeap); void print(int a[], int co转载 2013-01-05 15:59:16 · 268 阅读 · 0 评论 -
C语言 CRC 16 源码 算法
// Bits_Testing.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #define CRC_16_POLYNOMIALS 0x8005 #define EDE_SRC_ID 10276 #define转载 2013-07-08 10:12:00 · 1124 阅读 · 0 评论
分享