diff --git a/Project2.vcxproj b/Project2.vcxproj index 451a113..9556046 100644 --- a/Project2.vcxproj +++ b/Project2.vcxproj @@ -23,6 +23,7 @@ + @@ -31,6 +32,7 @@ + diff --git a/Project2.vcxproj.filters b/Project2.vcxproj.filters index 45faa74..652c5cc 100644 --- a/Project2.vcxproj.filters +++ b/Project2.vcxproj.filters @@ -33,6 +33,9 @@ 源文件 + + 源文件 + @@ -50,5 +53,8 @@ 头文件 + + 头文件 + \ No newline at end of file diff --git a/linked_queue.h b/linked_queue.h index b80aa41..85ada84 100644 --- a/linked_queue.h +++ b/linked_queue.h @@ -12,7 +12,7 @@ typedef struct linked_queue { struct node* front; struct node* rear; - int size; + int size; }link_queue; // ʼ diff --git a/main.c b/main.c index f7647ee..34d99db 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,12 @@ #include #include #include +#include "linked_queue.h" + + + + + int main(void) { @@ -98,7 +104,7 @@ int main(void) printf("----------\n"); push_array_queue(q, 666); print_array_queue(q);*/ - /* link_queue* q = init_link_queue(); + /* link_queue* q = init_link_queue(); push_link_queue(q, 1); push_link_queue(q, 2); push_link_queue(q, 3);