上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 216 下一页

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 三少爷的剑123 阅读(135) 评论(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 三少爷的剑123 阅读(222) 评论(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 三少爷的剑123 阅读(187) 评论(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 三少爷的剑123 阅读(197) 评论(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 三少爷的剑123 阅读(116) 评论(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 三少爷的剑123 阅读(152) 评论(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 三少爷的剑123 阅读(154) 评论(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 三少爷的剑123 阅读(145) 评论(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 三少爷的剑123 阅读(116) 评论(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 三少爷的剑123 阅读(176) 评论(0) 推荐(0)

上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 216 下一页

导航