11 2013 档案

摘要:1 #include 2 #include 3 using namespace std ; 4 5 #define INFINITE 1000 6 //主菜单 7 void MainMenu() 8 { 9 cout 24 void Input(vector& v , int num) 25 { 26 v.resize(num); 27 for (int i = 0; i > v[i]; 30 } 31 cout 35 void print(vector& v,int num) 36 { 37 v.resize(nu... 阅读全文
posted @ 2013-11-29 11:49 Please Call me 小强 阅读(324) 评论(0) 推荐(0) 编辑
摘要:这一步原理: 相当于有一个变量 int a=100; int *p=&a; 点击修改值, 在ce工具里可以找到a的值。 a的地址。 但是在实际代码里,并不是这么处理的, 是 通过指针改变这个a的值的 即: *p = 567; 这样的方式改变a的值的。 通过修改值,可以很容易找到a的值,记录下这个地址 阅读全文
posted @ 2013-11-03 00:21 Please Call me 小强 阅读(649) 评论(0) 推荐(0) 编辑
摘要:图解:此时会弹出一个对话框,选择是就可以了,最终会看到: 阅读全文
posted @ 2013-11-02 23:44 Please Call me 小强 阅读(356) 评论(0) 推荐(0) 编辑
摘要:图解: 阅读全文
posted @ 2013-11-02 23:09 Please Call me 小强 阅读(170) 评论(0) 推荐(0) 编辑
摘要:图解:重复第5,6,7,8,9步,最终得到: 阅读全文
posted @ 2013-11-02 22:42 Please Call me 小强 阅读(230) 评论(0) 推荐(0) 编辑
摘要:图解: 阅读全文
posted @ 2013-11-02 22:15 Please Call me 小强 阅读(244) 评论(0) 推荐(0) 编辑
摘要:点击【下一步】,进入第二关 阅读全文
posted @ 2013-11-02 21:53 Please Call me 小强 阅读(261) 评论(0) 推荐(0) 编辑
摘要:#include#include#include#includetypedef struct node{ int data; struct node *prior; struct node *next;}NODE,*PNODE,*LINKLIST;//初始化void init(LINKLIST *list){ *list = (PNODE)malloc(sizeof(NODE)); (*list)->prior=NULL;//前驱 (*list)->next=NULL;//后继}//插入 到第i个位置 i>=1void insert(LINKLIST lis... 阅读全文
posted @ 2013-11-02 21:36 Please Call me 小强 阅读(222) 评论(0) 推荐(0) 编辑
摘要:#include#include#include#include//双向循环链表的结构体定义typedef struct node{ int data; struct node *prior; struct node *next;}NODE,*PNODE,*LINKLIST;//初始化void init(LINKLIST *list){ *list = (PNODE)malloc(sizeof(NODE)); (*list)->next = *list; (*list)->prior = *list;}//添加void add(LINKLIST list,i... 阅读全文
posted @ 2013-11-02 21:35 Please Call me 小强 阅读(351) 评论(0) 推荐(0) 编辑
摘要:#include#include#include#includetypedef struct node{ int data; struct node *next;}NODE,*PNODE,*LINKLIST;//初始化void init(LINKLIST *list){ (*list) = (PNODE) malloc(sizeof(NODE)); (*list) ->next = *list;//头指针指向头结点}//添加数据,void add(LINKLIST list,int data){ PNODE p=list,q; //先将p移动到最后一个节点 ... 阅读全文
posted @ 2013-11-02 21:32 Please Call me 小强 阅读(443) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示