随笔分类 - 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*,
阅读全文
摘要: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
阅读全文
摘要: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(
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号