This commit is contained in:
jdh 2025-04-29 21:25:27 +08:00
commit ab8a54af3a
4 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,7 @@
<ClCompile Include="array_stack.c" />
<ClCompile Include="linked_list.c" />
<ClCompile Include="linked_list_stack.c" />
<ClCompile Include="linked_queue.c" />
<ClCompile Include="main.c" />
<ClCompile Include="sq_list.c" />
</ItemGroup>
@ -31,6 +32,7 @@
<ClInclude Include="array_stack.h" />
<ClInclude Include="linked_list.h" />
<ClInclude Include="linked_list_stack.h" />
<ClInclude Include="linked_queue.h" />
<ClInclude Include="sq_list.h" />
</ItemGroup>
<PropertyGroup Label="Globals">

View File

@ -33,6 +33,9 @@
<ClCompile Include="sq_list.c">
<Filter>源文件</Filter>
</ClCompile>
<ClCompile Include="linked_queue.c">
<Filter>源文件</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="sq_list.h">
@ -50,5 +53,8 @@
<ClInclude Include="array_queue.h">
<Filter>头文件</Filter>
</ClInclude>
<ClInclude Include="linked_queue.h">
<Filter>头文件</Filter>
</ClInclude>
</ItemGroup>
</Project>

View File

@ -12,7 +12,7 @@ typedef struct linked_queue
{
struct node* front;
struct node* rear;
int size;
int size;
}link_queue;
// ³õʼ»¯

2
main.c
View File

@ -92,7 +92,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);