随笔分类 -  Data Structure

摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <stdbool.h> 4 #include <time.h> 5 #include "Queue.h" 6 7 void fillQueues(QUEUE*, QUEUE*, QUEUE*, 阅读全文
posted @ 2020-02-29 23:24 张乐珊 阅读(245) 评论(0) 推荐(0)
摘要:Queue.h 1 #ifndef QUEUE_H_INCLUDED 2 #define QUEUE_H_INCLUDED 3 #include <stdbool.h> 4 5 typedef struct queue QUEUE; 6 7 QUEUE* createQueue(void); 8 Q 阅读全文
posted @ 2020-02-29 23:23 张乐珊 阅读(195) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "../Stack/stack.h" 4 5 typedef struct 6 { 7 int row; 8 int col; 9 } POSITION; 10 11 int getSize( 阅读全文
posted @ 2020-02-28 14:51 张乐珊 阅读(154) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "../Stack/stack.h" 4 5 const char closMiss[] = "Close paren missing at line"; 6 const char openM 阅读全文
posted @ 2020-02-28 14:41 张乐珊 阅读(301) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include "../Stack/stack.h" 5 6 int priority(char token); 7 bool isOperator(char to 阅读全文
posted @ 2020-02-28 14:40 张乐珊 阅读(243) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "../Stack/stack.h" 4 int main() 5 { 6 unsigned int num; 7 int* digit; 8 STACK* stack; 9 10 stack 阅读全文
posted @ 2020-02-28 14:39 张乐珊 阅读(349) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int hanoi(int n, char a, char c, char b); 5 6 int main() 7 { 8 int numdisk; 9 printf("The number of dis 阅读全文
posted @ 2020-02-28 14:38 张乐珊 阅读(438) 评论(0) 推荐(0)
摘要:stack.h 1 #ifndef STACK_H_INCLUDED 2 #define STACK_H_INCLUDED 3 #include <stdbool.h> 4 5 typedef struct stack STACK; 6 7 STACK* createStack (void); 8 阅读全文
posted @ 2020-02-28 14:35 张乐珊 阅读(322) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-14 14:09 张乐珊 阅读(271) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-13 20:24 张乐珊 阅读(232) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-13 20:17 张乐珊 阅读(268) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-13 19:56 张乐珊 阅读(114) 评论(0) 推荐(0)