上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 90 下一页
摘要: The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist 阅读全文
posted @ 2019-11-23 10:46 王清河 阅读(232) 评论(0) 推荐(0)
摘要: 给定公司N名员工的工龄,要求按工龄增序输出每个工龄段有多少员工。 输入格式: 输入首先给出正整数N(≤10​^5),即员工总人数;随后给出N个整数,即每个员工的工龄,范围在[0, 50]。 输出格式: 按工龄的递增顺序输出每个工龄的员工个数,格式为:“工龄:人数”。每项占一行。如果人数为0则不输出该 阅读全文
posted @ 2019-11-23 09:18 王清河 阅读(182) 评论(0) 推荐(0)
摘要: 函数原型: #include <sys/types.h > #include <sys/socket.h> int setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen); 参数说明: 阅读全文
posted @ 2019-11-19 16:21 王清河 阅读(280) 评论(0) 推荐(0)
摘要: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2019-11-18 22:37 王清河 阅读(160) 评论(0) 推荐(0)
摘要: 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 王清河 阅读(156) 评论(0) 推荐(0)
摘要: 给定N个(长整型范围内的)整数,要求输出从小到大排序后的结果。 本题旨在测试各种不同的排序算法在各种数据情况下的表现。各组测试数据特点如下: 数据1:只有1个元素; 数据2:11个不相同的整数,测试基本正确性; 数据3:103个随机整数; 数据4:104个随机整数; 数据5:105个随机整数; 数据 阅读全文
posted @ 2019-11-16 14:59 王清河 阅读(222) 评论(0) 推荐(0)
摘要: /* common.h */ /*服务器端口信息*/ #define PORTLINK ".charport" /*缓存限制*/ #define MAXNAMELEN 256 #define MAXPKTLENE 2048 /*信息类型钉钉*/ #define LIST_GROUPS 0 #defi 阅读全文
posted @ 2019-11-15 10:19 王清河 阅读(2058) 评论(0) 推荐(0)
摘要: 函数原型: #include<netdb.h> struct hostent * gethostbyaddr(const char *addr, socklen_t len, int family); 函数功能: 返回对应于给定地址的主机信息。 参数说明: addr:指向网络字节顺序地址的指针。 l 阅读全文
posted @ 2019-11-13 09:16 王清河 阅读(511) 评论(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 王清河 阅读(611) 评论(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 王清河 阅读(1099) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 90 下一页