自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (1)
  • 收藏
  • 关注

原创 Maximum Subarray(最大连续子数组之和)

描述Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subarray [4,−1,2,1] has...

2019-07-18 11:47:10 124

原创 二叉排序树c实现

大话数据结构中二叉排序树的实现,data值:左子树<根节点<右子树62,88,58,47,35,73,51,99,37,93,71,82,80插入后树结构如下图:删除88节点时,先转到88节点的左子树,然后向右到尽头,88的左子树为73,73节点向右到尽头是82,将82的data赋值给88节点,然后将82节点的左子树变为73的右子树,释放82节点,得出的树结构如下:...

2019-07-09 11:14:09 268 1

原创 描述符重定向dup2

函数原型:#include <unistd.h>int dup2(int oldfd, int newfd);函数功能描述:将描述符newfd重定向到oldfd下面是一个demon,将文件a.txt的描述符重定向到标准输出STDIN_FILENO:#include <stdio.h>#include <unistd.h>#include...

2019-07-08 09:03:48 163

原创 linux下socketpair通信

函数原型: #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> int socketpair(int domain, int type, int protocol, int sv[2]);函数功能描述:socketpair函数创建...

2019-07-02 16:31:24 217

原创 linux获取cpu核心数c语言接口

接口原型:#include <unistd.h>long sysconf(int name);接口描述:该接口用于获取一些系统配置,如_SC_NPROCESSORS_ONLN表示The number of processors currently online (available).等等#include <stdio.h>#include <un...

2019-07-02 10:13:24 1846

SDL中文译本.pdf

SDL(Simple DirectMedia Layer)是一套开放源代码的跨平台多媒体开发库,使用C语言写成。SDL提供了数种控制图像、声音、输出入的函数,让开发者只要用相同或是相似的代码就可以开发出跨多个平台(Linux、Windows、Mac OS X等)的应用软件。

2020-04-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除