码迷,mamicode.com
首页 >  
搜索关键字:network namespace    ( 53294个结果)
BFS模板
bfs 模板 bfs Code 2_bfs.rar:https://www.90pan.com/b2125384 密码:tjpl 文件名 bfs.cpp 分数 1 初始化代码 #include <stdio.h> #include <queue> using namespace std; int n ...
分类:其他好文   时间:2020-11-11 16:32:36    阅读次数:8
回调函数的理解
先看两个例子,比较不同: 例一(有回调函数) #include <iostream> using namespace std; void foo_one() { cout<<"foo_one"<<endl; } void foo_two() { cout<<"foo_two"<<endl; } ty ...
分类:其他好文   时间:2020-11-11 16:29:50    阅读次数:8
状压dp
###P2915 [USACO08NOV]Mixed Up Cows G dfs去做 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #define ll long long using namespace ...
分类:其他好文   时间:2020-11-11 15:59:42    阅读次数:7
redis6安装 centos系统
Redis6 安装 在centos7.5服务器上按照官方发布的安装方式并不能进行正确的安装,现收集并整理如下安装方式,亲测有效 1.安装依赖 yum install -y cpp binutils glibc glibc-kernheaders glibc-common glibc-devel gc ...
分类:其他好文   时间:2020-11-11 15:42:15    阅读次数:6
完全背包
1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 5 const int N=1010; 6 7 int dp[N][N]; 8 int w[N],v[N]; 9 int n,m; 10 11 int main() ...
分类:其他好文   时间:2020-11-10 10:43:32    阅读次数:7
Command(命令)
16. Command(命令) 16.1 定义 将一个请求封装成一个对象,从而让你使用不同的请求把客户端参数化,对请求排队或者记录请求日志,可以提供命令的撤销和恢复功能。 16.2.优点 ■ 类间解耦。调用者角色与接收者角色之间没有任何依赖关系,调用者实现功能时只需要调用Command中的execu ...
分类:其他好文   时间:2020-11-08 17:58:51    阅读次数:46
HDU 1010 搜索 奇偶剪枝
#include<iostream> #include<cstring> #include<cmath> using namespace std; char map[8][8]; int n, m, t; int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; bool ...
分类:其他好文   时间:2020-11-08 17:14:10    阅读次数:17
POJ 1054 搜索
#include<iostream> #include<memory.h> #include<cmath> #include<algorithm> using namespace std; typedef struct { int x, y; }node; node d[6000]; int r, ...
分类:其他好文   时间:2020-11-08 17:11:46    阅读次数:15
欧拉筛法模板代码
#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> #define MAXN 100000 using namespace std; int pri[MAXN];///质数数列 bool vis[MAXN ...
分类:其他好文   时间:2020-11-08 17:07:41    阅读次数:13
四则运算
#include #include <string.h> #define size 10 using namespace std; //含有一个二元算数式的三个值 typedef struct{ float x = 0,y = 0; //x,y为给定的随机数 float r = 0; //r为算数式 ...
分类:其他好文   时间:2020-11-08 17:05:55    阅读次数:19
共53294条   上一页 1 ... 72 73 74 75 76 ... 5330 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!