上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 89 下一页
摘要: 给定N个(长整型范围内的)整数,要求输出从小到大排序后的结果。 本题旨在测试各种不同的排序算法在各种数据情况下的表现。各组测试数据特点如下: 数据1:只有1个元素; 数据2:11个不相同的整数,测试基本正确性; 数据3:103个随机整数; 数据4:104个随机整数; 数据5:105个随机整数; 数据 阅读全文
posted @ 2019-11-16 14:59 王清河 阅读(212) 评论(0) 推荐(0) 编辑
摘要: /* common.h */ /*服务器端口信息*/ #define PORTLINK ".charport" /*缓存限制*/ #define MAXNAMELEN 256 #define MAXPKTLENE 2048 /*信息类型钉钉*/ #define LIST_GROUPS 0 #defi 阅读全文
posted @ 2019-11-15 10:19 王清河 阅读(1985) 评论(0) 推荐(0) 编辑
摘要: 函数原型: #include<netdb.h> struct hostent * gethostbyaddr(const char *addr, socklen_t len, int family); 函数功能: 返回对应于给定地址的主机信息。 参数说明: addr:指向网络字节顺序地址的指针。 l 阅读全文
posted @ 2019-11-13 09:16 王清河 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 函数原型: #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 王清河 阅读(559) 评论(0) 推荐(0) 编辑
摘要: LIBS+= -L $$PWD/../HKUnifyCamera_one/Debug -lHKUnifyCamera -luuid -Wl,-rpath=$$PWD/../HKUnifyCamera_one/Debug $$PWD:表示获取当前文件所在路径,用于相对路径编译 -Wl,-rpath:程 阅读全文
posted @ 2019-11-11 17:12 王清河 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 函数原型: #include <unistd.h> int symlink(const char * oldpath, const char * newpath); 函数说明: symlink()以参数newpath 指定的名称来建立一个新的连接(符号连接)到参数oldpath 所指定的已存在文件. 阅读全文
posted @ 2019-11-11 14:34 王清河 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: 函数原型; #include<unistd.h> ssize_t readlink(const char *path, char *buf, size_t bufsiz); 函数说明: readlink()会将参数path的符号链接内容存储到参数buf所指的内存空间,返回的内容不是以\000作字符串 阅读全文
posted @ 2019-11-11 14:21 王清河 阅读(13411) 评论(2) 推荐(1) 编辑
摘要: 函数原型: include<stdlib.h> char *getenv(char *envvar); 函数说明: getenv()用来取得参数envvar环境变量的内容。参数envvar为环境变量的名称,如果该变量存在则会返回指向该内容的指针。环境变量的格式为envvar=value。getenv 阅读全文
posted @ 2019-11-11 14:17 王清河 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 按照字符读取和写入 #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 王清河 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct Teacher { char name[64]; int age; char *pname2; }teacher; /* 编译器的=号操作会把指针变量的值,从 阅读全文
posted @ 2019-11-09 20:50 王清河 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 89 下一页