会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王清河
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
24
25
26
27
28
29
30
31
32
···
91
下一页
2019年11月17日
09-排序2 Insert or Merge (25 分)
摘要: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert
阅读全文
posted @ 2019-11-17 21:36 王清河
阅读(157)
评论(0)
推荐(0)
2019年11月16日
09-排序1 排序 (25 分)
摘要: 给定N个(长整型范围内的)整数,要求输出从小到大排序后的结果。 本题旨在测试各种不同的排序算法在各种数据情况下的表现。各组测试数据特点如下: 数据1:只有1个元素; 数据2:11个不相同的整数,测试基本正确性; 数据3:103个随机整数; 数据4:104个随机整数; 数据5:105个随机整数; 数据
阅读全文
posted @ 2019-11-16 14:59 王清河
阅读(222)
评论(0)
推荐(0)
2019年11月15日
C语言实现聊天室软件
摘要: /* common.h */ /*服务器端口信息*/ #define PORTLINK ".charport" /*缓存限制*/ #define MAXNAMELEN 256 #define MAXPKTLENE 2048 /*信息类型钉钉*/ #define LIST_GROUPS 0 #defi
阅读全文
posted @ 2019-11-15 10:19 王清河
阅读(2065)
评论(0)
推荐(0)
2019年11月13日
gethostbyaddr
摘要: 函数原型: #include<netdb.h> struct hostent * gethostbyaddr(const char *addr, socklen_t len, int family); 函数功能: 返回对应于给定地址的主机信息。 参数说明: addr:指向网络字节顺序地址的指针。 l
阅读全文
posted @ 2019-11-13 09:16 王清河
阅读(517)
评论(0)
推荐(0)
2019年11月12日
getpeername、getsockname
摘要: 函数原型: #include<sys/socket.h> int getsockname(int sockfd, struct sockaddr *localaddr, socklen_t *addrlen); int getpeername(int sockfd, struct sockaddr
阅读全文
posted @ 2019-11-12 18:36 王清河
阅读(614)
评论(0)
推荐(0)
2019年11月11日
Makefile之编译运行连接库方法
摘要: LIBS+= -L $$PWD/../HKUnifyCamera_one/Debug -lHKUnifyCamera -luuid -Wl,-rpath=$$PWD/../HKUnifyCamera_one/Debug $$PWD:表示获取当前文件所在路径,用于相对路径编译 -Wl,-rpath:程
阅读全文
posted @ 2019-11-11 17:12 王清河
阅读(1099)
评论(0)
推荐(0)
C语言之symlink
摘要: 函数原型: #include <unistd.h> int symlink(const char * oldpath, const char * newpath); 函数说明: symlink()以参数newpath 指定的名称来建立一个新的连接(符号连接)到参数oldpath 所指定的已存在文件.
阅读全文
posted @ 2019-11-11 14:34 王清河
阅读(1723)
评论(0)
推荐(0)
C函数之readlink
摘要: 函数原型; #include<unistd.h> ssize_t readlink(const char *path, char *buf, size_t bufsiz); 函数说明: readlink()会将参数path的符号链接内容存储到参数buf所指的内存空间,返回的内容不是以\000作字符串
阅读全文
posted @ 2019-11-11 14:21 王清河
阅读(14857)
评论(2)
推荐(1)
C函数之genv
摘要: 函数原型: include<stdlib.h> char *getenv(char *envvar); 函数说明: getenv()用来取得参数envvar环境变量的内容。参数envvar为环境变量的名称,如果该变量存在则会返回指向该内容的指针。环境变量的格式为envvar=value。getenv
阅读全文
posted @ 2019-11-11 14:17 王清河
阅读(585)
评论(0)
推荐(0)
2019年11月10日
读取写入文件三种方法
摘要: 按照字符读取和写入 #include<stdio.h> #include<string.h> #include<stdlib.h> int fputc_func(char *filename) { int i = 0; FILE *fp = NULL; char buf[64] = "this is
阅读全文
posted @ 2019-11-10 21:39 王清河
阅读(1150)
评论(0)
推荐(0)
上一页
1
···
24
25
26
27
28
29
30
31
32
···
91
下一页
公告