From 2f811acca95b2af229673b8792724f2047e28eeb Mon Sep 17 00:00:00 2001 From: Jdhggg <24016020834@stu.nsu.edu.cn> Date: Mon, 17 Mar 2025 14:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project2/Debug/Project2.log | 4 ++-- .../Debug/Project2.tlog/CL.command.1.tlog | Bin 1446 -> 1446 bytes Project2/Debug/Project2.tlog/CL.read.1.tlog | Bin 7252 -> 7640 bytes Project2/Debug/Project2.tlog/CL.write.1.tlog | Bin 896 -> 1002 bytes main.c | 8 +++++--- sq_list.c | 3 +-- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Project2/Debug/Project2.log b/Project2/Debug/Project2.log index 864d6f9..cd8193c 100644 --- a/Project2/Debug/Project2.log +++ b/Project2/Debug/Project2.log @@ -1,4 +1,4 @@  main.c - sq_list.c - 正在生成代码... +C:\code\lencode\Project2\main.c(9,34): warning C4047: “函数”:“sq_list *”与“sq_list **”的间接级别不同 +C:\code\lencode\Project2\main.c(9,34): warning C4024: “init_sq_list”: 形参和实参 1 的类型不同 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 fbd220b6af872f29f8ba7bce6f4525c1e515ece3..c52f65641cffa294cff076236027b6c3b36129ed 100644 GIT binary patch delta 32 kcmZ3+y^MQ;+2jeVVw)wH`|B6N?OI@MQ2~aAELg2xkaph+%MN@By-&7#xAL zCqopF4gu2sKs7Nyd4Gl=Fy9ZT4#9U}aAj}dLvs@W` W8H~YtLxAoK0=gj>UH3-M`@8`AWh(9f delta 27 jcmca%eZ^ve+2kZXvCV(@@9<96<1?8o!6&fM?FBCYo`4Eo diff --git a/Project2/Debug/Project2.tlog/CL.write.1.tlog b/Project2/Debug/Project2.tlog/CL.write.1.tlog index 0b3b0a88f1e8e974a32ea63acc2432c9cbaec4b9..8d9524e3fecda029d1aeada5976c19e2087da397 100644 GIT binary patch delta 37 scmZo*f5pDx5aVPuCXlength = 6; + replace_sq_list(list, 2, 5); + print_sq_list(list); printf("Hello World!\n"); return 0; -} \ No newline at end of file +} diff --git a/sq_list.c b/sq_list.c index 7d1351d..b245db8 100644 --- a/sq_list.c +++ b/sq_list.c @@ -7,7 +7,6 @@ sq_list* init_sq_list(sq_list *name) { name = (sq_list*)malloc(sizeof(sq_list)); memset(name, 0, sizeof(sq_list)); - return name; } // ɾ @@ -53,7 +52,7 @@ void insert_sq_list(sq_list* list, int pos, int value) } if (pos == MAX) printf("\n"); - if 9pos > list->length && pos <= MAX) + if (pos > list->length && pos <= MAX) printf("ڴ˴"); int i = list->length; int flog = i;