IplImage 结构解读:typedef struct _IplImage{int nSize;/* IplImage大小 */int ID;/* 版本 (=0)*/int nChannels;/* 大多数OPENCV函数支持1,2,3 或 4 个通道 */int alphaChannel;/* ...
分类:
其他好文 时间:
2014-06-26 21:37:24
阅读次数:
175
#include#includetypedef char* ElementType;typedef unsigned int Index;#define MinTableSize 15struct ListNode;typedef struct ListNode *Position;struct H...
分类:
其他好文 时间:
2014-06-26 18:04:01
阅读次数:
155
#include#include"fatal.h"typedef char* ElementType;typedef unsigned int Index;typedef Index Position;struct HashTbl;typedef struct HashTbl *HashTable;...
分类:
其他好文 时间:
2014-06-26 17:19:52
阅读次数:
150
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;typedef struct{ int weight, parent, lchild, rchild;}HTNode,*Huff...
分类:
其他好文 时间:
2014-06-26 16:54:53
阅读次数:
223
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;#define MaxInt 32767#define MVNum 100typedef struct{ char vexs[M...
分类:
其他好文 时间:
2014-06-26 16:38:00
阅读次数:
287
1、此程序为c++程序2、以下代码可实现手动输入,即去掉代码中的/*...*/注释符,并同时去掉赋值代码段3、源代码#includeusing namespace std;#define MaxInt 32767#define MVNum 100typedef struct{ char vexs[M...
分类:
其他好文 时间:
2014-06-26 16:29:13
阅读次数:
234
一直想自己写个游戏玩玩,好像很厉害的样子,终于今天下定决心写了个最经典的休闲的小游戏——贪吃蛇,当然也有借鉴别人的程序,但是整个代码都是和别人不一样的,直接上代码吧:
#include
#include
#include
#include
using namespace std;
#define ROW 22
#define COL 22
struct Point
{
char ch...
分类:
其他好文 时间:
2014-06-26 13:24:30
阅读次数:
196
就是欧拉判定,判定之后就可以使用DFS求欧拉回路了。图论内容。
这里使用邻接矩阵会快很多速度。
这类题目都是十分困难的,光是定义的记录的数组变量就会是一大堆。
#include
#include
#include
#include
using namespace std;
struct Edge
{
int ed, des;
Edge(int e = 0, int d ...
分类:
其他好文 时间:
2014-06-26 13:16:05
阅读次数:
250
解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误...
分类:
其他好文 时间:
2014-06-26 08:14:03
阅读次数:
260
#include #include #include #include using namespace std; typedef struct Node { struct Node *next[10]; int flag; }Node,*Tree; int flag1; void Cre...
分类:
其他好文 时间:
2014-06-25 11:27:43
阅读次数:
154