client #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <time.h> #include <arpa/inet.h> #include <sys/socket.h> ...
分类:
其他好文 时间:
2021-05-24 12:27:36
阅读次数:
0
相关文件 muduo/net/Channel.h muduo/net/Channel.cc 作用 Channel可理解为一个文件描述符fd和如何处理它的事件的回调函数的封装。 Channel负责注册和响应IO事件. muduo用户一般不直接使用Channel,而使用更上一层的封装,如TCPConne ...
分类:
其他好文 时间:
2021-05-24 12:25:58
阅读次数:
0
这题考察的是读者对于while循环的基础能力,考点为通过while循环进行取模和取余运算,难度为:1颗星 1 #include<stdio.h> 2 int main() 3 { 4 int n; // 获取用户输入的数 5 int temp; // 临时变量,用于存放用户输入的数进行比较 6 in ...
分类:
其他好文 时间:
2021-05-24 11:46:30
阅读次数:
0
第二章:递归与分治策略 计算机中问题规模越小,越好求解,自然而然想到可不可以将大问题分割为小问题,分治思想由此诞生。 分治法的设计思想是:将一个难以直接解决的大问题分割成一些规模较小的相同问题,以便各个击破,即分而治之。 如果原问题可分割成k个子问题,\(1<k≤n\),且这些子问题都可解,并可利用 ...
分类:
其他好文 时间:
2021-05-24 11:13:01
阅读次数:
0
1 #include <iostream> 2 #include <cstdlib> 3 #include <Windows.h> 4 using namespace std; 5 6 int main() 7 { 8 int i, j; 9 int x = 0; 10 int y = 5; 11 ...
分类:
编程语言 时间:
2021-05-24 10:59:22
阅读次数:
0
1.学了个标记永久化,用处有限,但是也有用 这里详解 code #include <cstring> #include <cstdio> #include <algorithm> #define int long long #define R register int #define printf ...
分类:
其他好文 时间:
2021-05-24 10:59:02
阅读次数:
0
这题考察的是读者对于数组的基础能力,考点为数组的下标和排序,难度为:1颗星 1 #include<stdio.h> 2 int main() 3 { 4 int arry[10]; // 定义一个数组,用于存放 5 int i; // 临时变量,用完遍历 6 int temp; // 临时变量,作为 ...
分类:
编程语言 时间:
2021-05-24 10:50:45
阅读次数:
0
/system/core/libutils/include/utils/Condition.h 1 // 2 3 // DO NOT USE: please use std::condition_variable instead. 4 5 /* 6 * Condition variable clas ...
分类:
移动开发 时间:
2021-05-24 10:49:00
阅读次数:
0
SpeechContest.cpp 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include "speechManager.h" 5 #include<map> 6 #include "speaker.h" ...
分类:
其他好文 时间:
2021-05-24 10:20:22
阅读次数:
0
编译环境 x86_64-w64-mingw32 gcc version 8.1.0 操作系统 window 10 X64 code #include <stdio.h> #define uint8_t unsigned char #define uint32_t unsigned int int m ...
分类:
其他好文 时间:
2021-05-24 10:20:00
阅读次数:
0