52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
#include <stdio.h>
|
||
#include <stdlib.h>
|
||
#include <string.h>
|
||
#include "array_stack.h"
|
||
#include "sq_list.h"
|
||
#include "array_queue.h"
|
||
|
||
int main(void)
|
||
{
|
||
|
||
|
||
|
||
//sq_list* L = init_sq_list();
|
||
//sq_list* N = init_sq_list();
|
||
//for (int i = 1; i <= 3; i++)
|
||
//{
|
||
// N->data[i - 1] = i+10;
|
||
//}
|
||
//for (int i = 1; i <= 10; i++)
|
||
//{
|
||
// L->data[i - 1] = i;
|
||
//}
|
||
//N->length = 3;
|
||
//L->length = 10;
|
||
//print_sq_list(N);
|
||
//print_sq_list(L);
|
||
//mer_ge_sq_list(L,N);
|
||
//print_sq_list(L);
|
||
//printf("L->length:[%d]\n", L->length);
|
||
|
||
/*
|
||
// ջ<><D5BB><EFBFBD><EFBFBD>
|
||
array_stack* stack = init_array_stack();
|
||
push_array_stack(stack, 1);
|
||
push_array_stack(stack, 2);
|
||
push_array_stack(stack, 3); */
|
||
array_queue *q = init_array_queue();
|
||
push_array_queue(q,0);
|
||
push_array_queue(q,1);
|
||
push_array_queue(q,2);
|
||
print_array_queue(q);
|
||
printf("---------------------\n");
|
||
pop_array_queue(q);
|
||
print_array_queue(q);
|
||
printf("----------\n");
|
||
push_array_queue(q, 666);
|
||
print_array_queue(q);
|
||
printf("Hello World!\n");
|
||
system("pause");
|
||
return 0;
|
||
}
|