diff --git a/Project2/Debug/Project2.log b/Project2/Debug/Project2.log index 8bbefbd..c2e2e7b 100644 --- a/Project2/Debug/Project2.log +++ b/Project2/Debug/Project2.log @@ -1,4 +1,5 @@ - linked_list.c -C:\code\lencode\Project2\linked_list.c(31,24): warning C4028: 形参 1 与声明不同 -C:\code\lencode\Project2\linked_list.c(59,2): warning C4047: “return”:“address_node *”与“int”的间接级别不同 + main.c + sq_list.c + 正在生成代码... +C:\code\lencode\Project2\sq_list.c(10,1): warning C4716: “init_sq_list”: 必须返回一个值 Project2.vcxproj -> C:\code\lencode\Project2\Debug\Project2.exe diff --git a/Project2/Debug/Project2.tlog/CL.command.1.tlog b/Project2/Debug/Project2.tlog/CL.command.1.tlog index cc68b3c..9ca4aac 100644 Binary files a/Project2/Debug/Project2.tlog/CL.command.1.tlog and b/Project2/Debug/Project2.tlog/CL.command.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/CL.read.1.tlog b/Project2/Debug/Project2.tlog/CL.read.1.tlog index ab688c7..863682e 100644 Binary files a/Project2/Debug/Project2.tlog/CL.read.1.tlog and b/Project2/Debug/Project2.tlog/CL.read.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/CL.write.1.tlog b/Project2/Debug/Project2.tlog/CL.write.1.tlog index 026ce36..8b924ee 100644 Binary files a/Project2/Debug/Project2.tlog/CL.write.1.tlog and b/Project2/Debug/Project2.tlog/CL.write.1.tlog differ diff --git a/sq_list.c b/sq_list.c index 731f6b8..3c1e03d 100644 --- a/sq_list.c +++ b/sq_list.c @@ -3,9 +3,9 @@ #include #include "sq_list.h" -sq_list* init_sq_list(sq_list *name) +sq_list* init_sq_list(void) { - name = (sq_list*)malloc(sizeof(sq_list)); + sq_list* name = (sq_list*)malloc(sizeof(sq_list)); memset(name, 0, sizeof(sq_list)); } diff --git a/sq_list.h b/sq_list.h index db0c95d..33c9e1c 100644 --- a/sq_list.h +++ b/sq_list.h @@ -9,7 +9,7 @@ typedef struct sq_list } sq_list; // ʼ -sq_list* init_sq_list(sq_list* list); +sq_list *init_sq_list(void); // ɾ void delete_sq_list(sq_list* list, int pos);