摘要: #include<iostream> #include<malloc.h> #define STACK_INIT_SIZE 100 using namespace std; typedef struct BiTNode { //双链表存储 char data; struct BiTNode *lch 阅读全文
posted @ 2021-11-13 11:02 诗笔无俦 阅读(137) 评论(0) 推荐(1)
摘要: #include<iostream> #include<malloc.h> using namespace std; typedef struct Sqlist { int *elem; int length; int listsize; }Sqlist; void InitList(Sqlist 阅读全文
posted @ 2021-11-07 16:33 诗笔无俦 阅读(47) 评论(0) 推荐(0)
摘要: #include<iostream> #include<malloc.h> using namespace std; typedef struct LNode{ int data;//数据域 struct LNode *next;//指针域 }LNode, *LinkList;//其中LinkLis 阅读全文
posted @ 2021-11-07 16:33 诗笔无俦 阅读(43) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; class Date{ public: Date(int y=0,int m=0,int d=0); Date(Date &d){ year=d.year; month=d.month 阅读全文
posted @ 2021-11-07 16:29 诗笔无俦 阅读(145) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-11-04 21:16 诗笔无俦 阅读(91) 评论(0) 推荐(0)
摘要: MODEL:SETS:WH/W1..W6/:AI;VD/V1..V8/:DJ;LINKS(WH,VD):C,X;ENDSETSDATA:AI=60 55 51 43 41 52;DJ=35 37 22 32 41 32 43 38;C=6,2,6,7,4,2,5,9 4,9,5,3,8,5,8,2 阅读全文
posted @ 2021-11-04 20:27 诗笔无俦 阅读(72) 评论(0) 推荐(0)
摘要: #define STACKSIZE 100 #include<iostream> #include<malloc.h> using namespace std; typedef struct Sqstack{ int *base; int *top; int stacksize; }Sqstack; 阅读全文
posted @ 2021-11-02 12:35 诗笔无俦 阅读(75) 评论(0) 推荐(1)
摘要: #define STACKSIZE 20 #include<iostream> #include<malloc.h> #include<string> using namespace std; typedef struct Sqstack{ char *base; char *top; int St 阅读全文
posted @ 2021-11-01 22:41 诗笔无俦 阅读(92) 评论(0) 推荐(1)
摘要: #include<stdio.h> int main() { int n,m,i,p; while(scanf("%d %d",&n,&m)!=EOF) { int a[100]= {0},k=0; for(i=1; i<=n; i++) a[i]=i; p=n; while(p!=0) { for 阅读全文
posted @ 2021-11-01 22:36 诗笔无俦 阅读(55) 评论(0) 推荐(1)