摘要:
// 队列.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include "malloc.h"
#define maxSize 10
//循环队列
typedef struct
{ int data[maxSize]; int front; int rear;
}SqQueue;
void initQueue(SqQueue &qu)//初始队
{ qu.front=qu.rear=0;
}
int isEmpty(SqQueue qu)//判断队是否为空
{ if(qu.front==qu.rear) 阅读全文
posted @ 2013-09-27 23:49
小竹zz
阅读(196)
评论(0)
推荐(0)
摘要:
// 队列.cpp : 定义控制台应用程序的入口点。
// #include "stdafx.h"
#include "malloc.h"
#define maxSize 10
//循环队列
typedef struct
{ int data[maxSize]; int front; int rear;
}SqQueue;
void initQueue(SqQueue &qu)//初始队
{ qu.front=qu.rear=0;
}
int isEmpty(SqQueue qu)//判断队是否为空
{ if(qu.front==qu.rear) 阅读全文
posted @ 2013-09-27 23:49
小竹zz
阅读(237)
评论(0)
推荐(0)
摘要:
$v) { if(in_array($k, $this->fieldList)){ $fieldList.=$k.","; if (!get_magic_quotes_gpc()) $value .= "'".addslashes($v)."',"; else $value .= "'".$v."',"; } } $fieldList=rtrim($fieldList, ","); $value=rtrim($value, ", 阅读全文
posted @ 2013-09-27 14:42
小竹zz
阅读(185)
评论(0)
推荐(0)
摘要:
each_disNums = intval($each_disNums); $this->nums = intval($nums); if (!$current_page) { $this->current_page = 1; } else { $this->current_page = intval($current_page); } $this->sub_pages = intval($sub_pages); $this->page... 阅读全文
posted @ 2013-09-27 14:41
小竹zz
阅读(153)
评论(0)
推荐(0)
摘要:
#include "stdafx.h"
#include "malloc.h"
#define maxSize 100 typedef struct LNode
{ int data; struct LNode *next;
}LNode;
void push(LNode *&L,int x)//使用这个方法 使得栈的入栈和出栈都在表头了
{ LNode *p; p=(LNode*)malloc(sizeof(LNode)); p->next=L->next; p->data=x; L->next=p; }
void pu 阅读全文
posted @ 2013-09-27 14:37
小竹zz
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号