小说网 找小说 无限小说 烟雨红尘 幻想小说 酷文学 深夜书屋
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 102 下一页

2014年1月17日

基于visual Studio2013解决算法导论之025双向循环链表

摘要: 题目双向循环链表解决代码及点评#include #include #include #include #includetypedef struct Link{ int nValue; struct Link *pPrev; struct Link *pNext;}Link, *PLink;P... 阅读全文

posted @ 2014-01-17 16:46 牛栏山1 阅读(90) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之024双向链表实现

摘要: 题目双向链表的实现解决代码及点评#include #include #include #include #includetypedef struct Link{ int nValue; struct Link *pPrev; struct Link *pNext;}Link, *PLink;... 阅读全文

posted @ 2014-01-17 16:41 牛栏山1 阅读(75) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之023队列实现(基于数组)

摘要: 题目基于数组的队列解决代码及点评#include #include #include #include #include#define N 10typedef struct Queue{ int nHead; int nTail; int nLen; int *pnArr;}Queue, *... 阅读全文

posted @ 2014-01-17 16:39 牛栏山1 阅读(131) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之022队列实现(基于链表)

摘要: 题目基于链表的队列实现解决代码及点评#include #include #include #include #includetypedef struct QNode{ int nValue; struct QNode *pNext;}QNode, *PQNode;typedef struct... 阅读全文

posted @ 2014-01-17 16:36 牛栏山1 阅读(99) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之021单向循环链表

摘要: 题目单向循环链表的操作解决代码及点评#include #include #include #include #includetypedef struct LoopLink{ int nValue; struct LoopLink *pNext;}LoopLink, *PLoopLink;PL... 阅读全文

posted @ 2014-01-17 16:33 牛栏山1 阅读(103) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之020单链表

摘要: 题目单链表操作解决代码及点评#include using namespace std;struct LinkNode{public: LinkNode(int value = 0): nValue(value){ pNext = NULL; } ~LinkNode() { pNext = N... 阅读全文

posted @ 2014-01-17 16:31 牛栏山1 阅读(110) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之019栈实现(基于数组)

摘要: 题目用数组实现栈解决代码及点评#include #include #include #include #includetypedef struct Stack{ int nTop; int nLen; int *pnArr;}Stack, *PStack;//初始化栈 nLen为栈的大小PS... 阅读全文

posted @ 2014-01-17 16:28 牛栏山1 阅读(72) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之018栈实现(基于链表)

摘要: 题目用链表实现栈解决代码及点评#include #include #include #include #includetypedef struct Stack{ int nValue; struct Stack *pNext;}Stack, *PStack;PStack CreateStac... 阅读全文

posted @ 2014-01-17 16:26 牛栏山1 阅读(87) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之017查找第n小元素

摘要: 题目查找第n小元素解决代码及点评#include #include #include #include void PrintArr(int *pnArr, int nLen){ for (int i = 0; i < nLen; i++) { printf("%d ", pnArr[i])... 阅读全文

posted @ 2014-01-17 16:23 牛栏山1 阅读(113) 评论(0) 推荐(0) 编辑

基于visual Studio2013解决算法导论之016查找最大值最小值

摘要: 题目查找最大、最小值解决代码及点评#include #include #include #include void PrintArr(int *pnArr, int nLen){ for (int i = 0; i pnArr[i]) { nMin = pnArr[i]; } } ... 阅读全文

posted @ 2014-01-17 16:21 牛栏山1 阅读(169) 评论(0) 推荐(0) 编辑

上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 102 下一页

导航