自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 Winpcap使用经验

1.过滤规则 对WinPcap的过滤表达式语法进行一下简要的介绍,其中关键字用黑体字表示。 1) 表达式支持逻辑操作符,可以使用关键字 and、or、not对子表达式进行组合,同时支持使用小括号。 2) 基于协议的过滤要使用协议限定符,协议限定符可以为ip、arp、rarp、tcp、udp等。 3) 基于MAC地址的过滤要使用限定符ether(代表以太网地址)、当该MAC地址仅作为源地址时表达式为...

2019-07-04 15:29:44 459

转载 VS2017+Winpcap配置经历

VS2017+Winpcap配置经历 VS2017的配置: https://blog.csdn.net/TimoTolkki1966/article/details/80211285 https://blog.csdn.net/qq_17242957/article/details/50954412 const char 与char *不兼容的问题: https://blog.csdn.net/r...

2019-07-02 10:47:19 2787 3

原创 最大连续子序列

#include<iostream> #include<string.h> using namespace std; const int Max=0x3f3f3f3f;int main() { int n; int a[10010]; while(cin>>n&&n) { int x=1; int y=n; int N=

2017-09-29 11:11:24 208

原创 算法程序设计 利息计算

#include <iostream> using namespace std;int main() { int n; float a[100][6]; while(scanf("%d",&n)!=EOF) { for(int i=1;i<=n;i++) { for(int j=1;j<=5;j++)

2017-09-15 11:32:13 1333 1

原创 算法程序设计 素数回文数

#include <stdio.h> #include <iostream> #include <algorithm> using namespace std; int IsPalindrome(int iNumber) { int temp=0; int number = iNumber; while(number){ temp=temp*10

2017-09-15 11:31:36 618

原创 算法程序设计 最小公倍数

#include<iostream> using namespace std;int main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { int t=a*b; int c=a%b; while(c) { a=b;

2017-09-15 10:22:12 1081

原创 UVA 514 判断一列数的顺序是否能用栈而排列出

#include <cstdio> #include <iostream> #include <stack> using namespace std;const int MAXN=1000+10; int n,target[MAXN];int main() { while(cin>>n&&n) { stack<int> s; int A,B,ok;

2017-07-08 20:56:14 278

原创 邻接表宽搜深搜

#include <iostream> using namespace std;const int MaxVertexNum=100; typedef int Vertex; typedef int WeightType; typedef char DataType;typedef struct ENode * PtrToENode; typedef PtrToENode Edge; struct

2017-06-05 11:26:00 297

原创 算法与数据结构课程设计(Floyd算法)

#include "stdafx.h" #include <iostream> #include <string> using namespace std;struct Attraction { string name; string info; }a[11]; int map[11][11];int _tmain(int argc, _TCHAR* argv[]) { a[

2017-05-31 14:51:06 831

原创 素数筛法

#include <iostream> #include <string.h> using namespace std;int flag[1000000];void Simple(int n) { int cnt=0; for(int i=2;i<=n;i++) { if(flag[i]==0) { for(int j=

2017-04-26 20:12:43 177

原创 HDU 1010

// HDU 1010.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> #include <string.h> using namespace std;int n,m,k,num; int sx,sy; char map[8][8]; int flag[8][8]; int dir[4][2]={{-1,0},{0,-1

2017-04-14 19:56:17 215

原创 HDU 2544

// HDU 2544.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> #include <string.h> using namespace std;int map[110][110]; int flag[110]; int dis[110]; int n,m; int x,y,num; int Min[2]; con

2017-04-13 20:05:34 273

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除