Merge branch 'master' of https://github.com/jdhnsu/C_DS_Algo
This commit is contained in:
commit
ab8a54af3a
@ -23,6 +23,7 @@
|
|||||||
<ClCompile Include="array_stack.c" />
|
<ClCompile Include="array_stack.c" />
|
||||||
<ClCompile Include="linked_list.c" />
|
<ClCompile Include="linked_list.c" />
|
||||||
<ClCompile Include="linked_list_stack.c" />
|
<ClCompile Include="linked_list_stack.c" />
|
||||||
|
<ClCompile Include="linked_queue.c" />
|
||||||
<ClCompile Include="main.c" />
|
<ClCompile Include="main.c" />
|
||||||
<ClCompile Include="sq_list.c" />
|
<ClCompile Include="sq_list.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@ -31,6 +32,7 @@
|
|||||||
<ClInclude Include="array_stack.h" />
|
<ClInclude Include="array_stack.h" />
|
||||||
<ClInclude Include="linked_list.h" />
|
<ClInclude Include="linked_list.h" />
|
||||||
<ClInclude Include="linked_list_stack.h" />
|
<ClInclude Include="linked_list_stack.h" />
|
||||||
|
<ClInclude Include="linked_queue.h" />
|
||||||
<ClInclude Include="sq_list.h" />
|
<ClInclude Include="sq_list.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
<ClCompile Include="sq_list.c">
|
<ClCompile Include="sq_list.c">
|
||||||
<Filter>源文件</Filter>
|
<Filter>源文件</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="linked_queue.c">
|
||||||
|
<Filter>源文件</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="sq_list.h">
|
<ClInclude Include="sq_list.h">
|
||||||
@ -50,5 +53,8 @@
|
|||||||
<ClInclude Include="array_queue.h">
|
<ClInclude Include="array_queue.h">
|
||||||
<Filter>头文件</Filter>
|
<Filter>头文件</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="linked_queue.h">
|
||||||
|
<Filter>头文件</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -12,7 +12,7 @@ typedef struct linked_queue
|
|||||||
{
|
{
|
||||||
struct node* front;
|
struct node* front;
|
||||||
struct node* rear;
|
struct node* rear;
|
||||||
int size;
|
int size;
|
||||||
}link_queue;
|
}link_queue;
|
||||||
|
|
||||||
// ³õʼ»¯
|
// ³õʼ»¯
|
||||||
|
2
main.c
2
main.c
@ -92,7 +92,7 @@ int main(void) {
|
|||||||
printf("----------\n");
|
printf("----------\n");
|
||||||
push_array_queue(q, 666);
|
push_array_queue(q, 666);
|
||||||
print_array_queue(q);*/
|
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, 1);
|
||||||
push_link_queue(q, 2);
|
push_link_queue(q, 2);
|
||||||
push_link_queue(q, 3);
|
push_link_queue(q, 3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user