Sn公式求和;;;;; 摘要:#include<stdio.h>int main(){ int a=2,n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); for(i=0;i<n;i++){ f…… 文章列表 2021年10月23日 0 点赞 0 评论 272 浏览 评分:0.0
阶乘求和!!!!! 摘要:#include<stdio.h>int main(){ int n=0,i=0,j=0,s=0,m=1; scanf("%d",&n); if(n<=20){ for(i=0;i<n;…… 文章列表 2021年10月23日 0 点赞 0 评论 433 浏览 评分:0.0
python实现二叉树的操作 摘要:```python from collections import deque class Stack(object): def __init__(self): sel…… 文章列表 2021年10月23日 0 点赞 0 评论 341 浏览 评分:0.0
udp服务器编程系列0 摘要:udp 是一个面向无连接的,不安全的,报式传输层协议,udp 的通信过程默认也是阻塞的。 1、UDP通信不需要建立连接 ,因此不需要进行 connect () 操作 2、UDP通信过程中,每次…… 文章列表 2021年10月26日 0 点赞 0 评论 254 浏览 评分:0.0
有疑惑的题目 摘要:#### 待解决的问题 ###### 问题001 - 问题: 我们输入数字时都是用: `scanf("%d", &num);` 但是我们输入的不一定就是数字, 比如这里输入了一个字符‘a’, …… 文章列表 2021年10月27日 0 点赞 0 评论 315 浏览 评分:0.0
udp服务器并发编程1 摘要:测试代码: #define _DEFAULT_SOURCE #include<arpa/inet.h> #include<unistd.h> #include<stdbool.h> #inc…… 文章列表 2021年10月27日 0 点赞 0 评论 154 浏览 评分:0.0
TCP网络编程之多进程并发 摘要:公共头文件:#pragma once #include<stdio.h> #include<stdint.h> #include<string.h> #include<unistd.h> #…… 文章列表 2021年10月29日 0 点赞 0 评论 247 浏览 评分:0.0
把一个一维数组的全部赋给另一个一维数组的第i个 摘要:类似 array1=[2,2,2,2],array2=[2,3,3],array3[3.5],变成array4=[[2,2,2,2],[2,3,3],[3,5]]#include <stdio.h>#…… 文章列表 2021年11月01日 0 点赞 0 评论 540 浏览 评分:0.0
WinPcap编程之旅二 摘要:一、QT配置:二、测试代码:#include "pcap.h" #include <QCoreApplication> #include <winsock2.h> #include <ws2tc…… 文章列表 2021年11月01日 0 点赞 0 评论 359 浏览 评分:0.0
WinPcap编程之旅三 摘要:测试代码: 参考:https://www.cnblogs.com/blacksword/archive/2012/03/10/2389153.html 由前两节的铺垫,我们已经知道如何获取本地…… 文章列表 2021年11月01日 0 点赞 0 评论 320 浏览 评分:0.0