关于listen函数backlog参数实战 摘要:一、环境: Ubuntu 18.04.1 LTS二、头文件 #include<sys/socket.h>三、函数简介 int listen(int sockfd,int backlo…… 文章列表 2021年10月23日 0 点赞 0 评论 272 浏览 评分:9.9
第一个代码Hello,World! 摘要:#include<stdio.h>int main(){ printf("Hello,World!"); return 0;}…… 文章列表 2021年10月24日 0 点赞 1 评论 168 浏览 评分:9.9
题目 1017: [编程入门]完数的判断(大概是最简单无脑的方法) 摘要:```cpp #include using namespace std; #include int main() { int n; cin >> n;//输入 for (in…… 文章列表 2021年10月26日 0 点赞 0 评论 189 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.3 (C语言) 摘要:/* 把a[0]默认为最小值, a[9]默认为最大值, 再一个个对比,更小的数放入a[0], 更大的数放入a[9]。*/#include <stdio.h> //导入输入数 void scan…… 文章列表 2021年10月27日 0 点赞 0 评论 571 浏览 评分:9.9
1047: [编程入门]报数问题 摘要:#include<stdio.h> int main(){ // n表示几个人围一圈, flog数组进行标识(谁被剔除),s数组表示记录报数的人,index表示位置,count表示剔除的人数…… 文章列表 2021年10月27日 0 点赞 0 评论 298 浏览 评分:9.9
做题技巧-C语言 摘要:#### 常用代码技巧 ##### 1. EOF C语言中,`EOF`常被作为`文件结束的标志`。 宏`EOF`的值就是`-1`. ASCII代码值的范围是`0~127`,不可能出现`-1`,…… 文章列表 2021年10月28日 0 点赞 0 评论 587 浏览 评分:9.9
TCP网络编程之http请求 摘要:公共头文件:#pragma once #include<stdio.h> #include<stdint.h> #include<string.h> #include<unistd.h> #…… 文章列表 2021年10月29日 0 点赞 0 评论 292 浏览 评分:9.9
TCP网络编程之静态进程池 摘要:公共代码:#pragma once #include<stdio.h> #include<stdint.h> #include<string.h> #include<unistd.h> #i…… 文章列表 2021年10月29日 0 点赞 0 评论 534 浏览 评分:9.9
从字符串中提取元音字母输出 摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[100]; char b[100]; …… 文章列表 2021年10月31日 0 点赞 0 评论 640 浏览 评分:9.9
Fibonacci数列的迭代,递归和动态规划。 摘要:迭代:#include <stdio.h>#include <stdlib.h>int main(){ int i = 1,j = 1,temp,n,N,x; scanf("%d",&N)…… 文章列表 2021年10月31日 0 点赞 1 评论 251 浏览 评分:9.9