一、动态栈的实现#include #include #include //定义一个节点的结构typedef struct node{ int member; //数据域 struct node *pNext; ...
分类:
编程语言 时间:
2014-07-16 22:54:30
阅读次数:
266
当Nginx检测到http关键配置项时,http配置模型启动,首先会建立一个ngx_http_cong_ctx_t结构。typedef struct{ void **main_conf; void **srv_conf; void **loc_conf;}ngx_http_conf_ctx_t...
分类:
其他好文 时间:
2014-07-16 20:58:15
阅读次数:
370
union 关键字的用法与struct 的用法非常类似。union 维护足够的空间来置放多个数据成员中的“一种”,而不是为每一个数据成员配置空间,在union 中所有的数据成员共用一个空间,同一时间只能储存其中一个数据成员,所有的数据成员具有相同的起始地址。例子如下:union StateMachi...
分类:
编程语言 时间:
2014-07-16 20:53:25
阅读次数:
256
通过链表的一些题目,了解链表的基本操作实现,掌握递归算法的基本思路,掌握扎实的编程习惯。一、单链表基本操作1.1、单链表节点定义struct ListNode{ int value; ListNode *pNext;};1.2、在尾部插入节点void AddToTail(ListNode...
分类:
其他好文 时间:
2014-07-16 20:33:24
阅读次数:
150
黑马程序员--鄢振东----------------------ASP.Net+Unity3D游戏开发、.Net培训、期待与您交流! ----------------------在C#中,值类型有:int double decimal bool enum struct . 应用类型有:stri...
分类:
其他好文 时间:
2014-07-16 20:21:44
阅读次数:
248
CvMat的矩阵结构 1 typedef struct CvMat 2 { 3 //矩阵中元素的类型 4 int type; 5 //行数据长度 6 int step; 7 8 /* for internal use only */ 9 int* r...
分类:
其他好文 时间:
2014-07-16 20:17:24
阅读次数:
187
OpenCV的基本数据结构CvPoint:表示图像中的点CvPoint2D32f:二维空间中的点CvPoint3D32f:三维空间中的点这些都是结构体,并不是C++语言中的类,所以他们的构造函数就是简单的内联函数。 1 typedef struct CvPoint 2 { 3 int x; ...
分类:
其他好文 时间:
2014-07-16 20:17:07
阅读次数:
171
新单词unidirectional get T T
求有向图上,以某点为根的,最小生成树
参考别人的模板
#include
#include
#include
#include
#include
#include
#include
#define inf 2000000000
using namespace std;
struct node1
{
double x,...
分类:
Web程序 时间:
2014-07-10 20:32:47
阅读次数:
285
引言:
队列与栈的区别是队列是先进先出的数据结构。为了使得出入队列容易,可以引入队列头指针和队列尾指针。
分析描述:
队列的结点结构。
typedef int QElemType;
typedef struct QNode{
QElemType data;
struct QNode *next;
}QNode, *QueuePtr;...
分类:
其他好文 时间:
2014-07-10 19:28:47
阅读次数:
197
点击打开链接
简单
模拟机器人的移动,发生碰撞时输出相应的信息。
code
#include
#include
using namespace std;
struct node{
int k;
int s;
}
mtx[200][200];
struct node1{
int x, y;
}
rob[200];
int n, m;
int...
分类:
其他好文 时间:
2014-07-10 17:25:11
阅读次数:
153