合并函数2
This commit is contained in:
parent
dcbc9f6ab2
commit
42e17f765c
@ -2,7 +2,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<ProjectOutputs>
|
<ProjectOutputs>
|
||||||
<ProjectOutput>
|
<ProjectOutput>
|
||||||
<FullPath>C:\Users\段宇宸\Documents\GitHub\Project2\Debug\Project2.exe</FullPath>
|
<FullPath>C:\code\lencode\Project2\Debug\Project2.exe</FullPath>
|
||||||
</ProjectOutput>
|
</ProjectOutput>
|
||||||
</ProjectOutputs>
|
</ProjectOutputs>
|
||||||
<ContentFiles />
|
<ContentFiles />
|
||||||
|
@ -1 +1,8 @@
|
|||||||
Project2.vcxproj -> C:\Users\段宇宸\Documents\GitHub\Project2\Debug\Project2.exe
|
sq_list.c
|
||||||
|
C:\code\lencode\Project2\sq_list.c(94,37): warning C4028: 形参 2 与声明不同
|
||||||
|
C:\code\lencode\Project2\sq_list.c(100,9): warning C4033: “locate_list”必须返回值
|
||||||
|
C:\code\lencode\Project2\sq_list.c(104,27): warning C4047: “==”:“int”与“int *”的间接级别不同
|
||||||
|
C:\code\lencode\Project2\sq_list.c(110,9): warning C4033: “locate_list”必须返回值
|
||||||
|
C:\code\lencode\Project2\sq_list.c(164,34): warning C4133: “函数”: 从“sq_list *”到“int *”的类型不兼容
|
||||||
|
C:\code\lencode\Project2\sq_list.c(114,1): warning C4715: “locate_list”: 不是所有的控件路径都返回值
|
||||||
|
Project2.vcxproj -> C:\code\lencode\Project2\Debug\Project2.exe
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
C:\Users\段宇宸\Documents\GitHub\Project2\linked_list.c;C:\Users\段宇宸\Documents\GitHub\Project2\Project2\Debug\linked_list.obj
|
C:\code\lencode\Project2\linked_list.c;C:\code\lencode\Project2\Project2\Debug\linked_list.obj
|
||||||
C:\Users\段宇宸\Documents\GitHub\Project2\linked_list_stack.c;C:\Users\段宇宸\Documents\GitHub\Project2\Project2\Debug\linked_list_stack.obj
|
C:\code\lencode\Project2\linked_list_stack.c;C:\code\lencode\Project2\Project2\Debug\linked_list_stack.obj
|
||||||
C:\Users\段宇宸\Documents\GitHub\Project2\main.c;C:\Users\段宇宸\Documents\GitHub\Project2\Project2\Debug\main.obj
|
C:\code\lencode\Project2\main.c;C:\code\lencode\Project2\Project2\Debug\main.obj
|
||||||
C:\Users\段宇宸\Documents\GitHub\Project2\sq_list.c;C:\Users\段宇宸\Documents\GitHub\Project2\Project2\Debug\sq_list.obj
|
C:\code\lencode\Project2\sq_list.c;C:\code\lencode\Project2\Project2\Debug\sq_list.obj
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
PlatformToolSet=v143:VCToolArchitecture=Native32Bit:VCToolsVersion=14.43.34808:TargetPlatformVersion=10.0.22621.0:
|
PlatformToolSet=v143:VCToolArchitecture=Native32Bit:VCToolsVersion=14.43.34808:TargetPlatformVersion=10.0.26100.0:
|
||||||
Debug|Win32|C:\Users\段宇宸\Documents\GitHub\Project2\|
|
Debug|Win32|C:\code\lencode\Project2\|
|
||||||
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
^C:\USERS\段宇宸\DOCUMENTS\GITHUB\PROJECT2\PROJECT2\DEBUG\LINKED_LIST.OBJ|C:\USERS\段宇宸\DOCUMENTS\GITHUB\PROJECT2\PROJECT2\DEBUG\LINKED_LIST_STACK.OBJ|C:\USERS\段宇宸\DOCUMENTS\GITHUB\PROJECT2\PROJECT2\DEBUG\MAIN.OBJ|C:\USERS\段宇宸\DOCUMENTS\GITHUB\PROJECT2\PROJECT2\DEBUG\SQ_LIST.OBJ
|
^C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\LINKED_LIST.OBJ|C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\LINKED_LIST_STACK.OBJ|C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\MAIN.OBJ|C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\SQ_LIST.OBJ
|
||||||
C:\Users\段宇宸\Documents\GitHub\Project2\Project2\Debug\Project2.ilk
|
C:\code\lencode\Project2\Project2\Debug\Project2.ilk
|
||||||
|
Binary file not shown.
13
sq_list.c
13
sq_list.c
@ -63,7 +63,7 @@ void insert_sq_list(sq_list* list, int pos, int value)
|
|||||||
list->data[i + 1] = list->data[i];
|
list->data[i + 1] = list->data[i];
|
||||||
}
|
}
|
||||||
list->data[pos] = value;
|
list->data[pos] = value;
|
||||||
if (flog + 1 > list->length)
|
/* if (flog + 1 > list->length)*/
|
||||||
list->length++;
|
list->length++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,18 +158,11 @@ void mer_ge_sq_list(sq_list* list_1, sq_list* list_2)
|
|||||||
{
|
{
|
||||||
int e;
|
int e;
|
||||||
int k = 0;
|
int k = 0;
|
||||||
for (int k=0;k < list_2->length;k++);
|
for (int k=0;k < list_2->length;k++)
|
||||||
{
|
{
|
||||||
get_sq_list(list_2, k, &e);
|
get_sq_list(list_2, k, &e);
|
||||||
if (!locate_list(list_1, list_2))
|
if (!locate_list(list_1, list_2))
|
||||||
insert_sq_list(list_1, list_1->length, e);
|
insert_sq_list(list_1, list_1->length, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user