- 博客(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
2020-04-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人