上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页

2013年10月9日

后缀式求值

摘要: # include <stdio.h> # include <string.h> struct node { int top; int a[1000]; }p; int main() { char ch[100]; gets(ch); p.top=0; for(int i=0 ; ch[i]!='# 阅读全文

posted @ 2013-10-09 08:35 随风浪子的博客 阅读(454) 评论(0) 推荐(0) 编辑

2013年9月25日

行编辑行器

摘要: # include # include struct node { char a[300]; int top; }p; int main() { char s[1000]; int i,j,k,n; while(gets(s) != NULL) { p.top=0; n=strlen(s); fo... 阅读全文

posted @ 2013-09-25 18:25 随风浪子的博客 阅读(134) 评论(0) 推荐(0) 编辑

单链表中重复元素的删除

摘要: # include # include # include typedef struct node { struct node *next; int data; int num; }LINK; int main() { int n,i,j,k=0; LINK *p,*head,*q; head=(LINK *)malloc(sizeof(LI... 阅读全文

posted @ 2013-09-25 18:15 随风浪子的博客 阅读(132) 评论(0) 推荐(0) 编辑

链表归并

摘要: # include # include # include typedef struct node { struct node *next; int data; }LINK; LINK *merge(LINK *head1,LINK *head2); int main() { int i,n,m; LINK *q,*p,*head,*head1,*head2... 阅读全文

posted @ 2013-09-25 18:13 随风浪子的博客 阅读(119) 评论(0) 推荐(0) 编辑

链表逆置

摘要: # include # include # include typedef struct node { struct node *next; int data; }LINK; int main() { int i,j,n,leag=0; LINK *p,*q,*head; head=(LINK *)malloc(sizeof(LINK)); ... 阅读全文

posted @ 2013-09-25 18:12 随风浪子的博客 阅读(81) 评论(0) 推荐(0) 编辑

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页

导航