From a7ea423353f23c0bff762a35ef62f0350f4f9132 Mon Sep 17 00:00:00 2001
From: Jdhggg <24016020834@stu.nsu.edu.cn>
Date: Mon, 17 Mar 2025 14:00:57 +0800
Subject: [PATCH] =?UTF-8?q?=E8=88=92=E9=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Project2.vcxproj | 14 ++++-----
Project2.vcxproj.filters | 6 ++--
Project2/Debug/Project2.exe.recipe | 11 +++++++
Project2/Debug/Project2.log | 8 +-----
.../Debug/Project2.tlog/CL.command.1.tlog | Bin 2 -> 1446 bytes
Project2/Debug/Project2.tlog/CL.read.1.tlog | Bin 0 -> 7252 bytes
Project2/Debug/Project2.tlog/CL.write.1.tlog | Bin 0 -> 896 bytes
Project2/Debug/Project2.tlog/Cl.items.tlog | 2 ++
.../Debug/Project2.tlog/link.command.1.tlog | Bin 0 -> 1314 bytes
Project2/Debug/Project2.tlog/link.read.1.tlog | Bin 0 -> 3854 bytes
.../Debug/Project2.tlog/link.secondary.1.tlog | 2 ++
.../Debug/Project2.tlog/link.write.1.tlog | Bin 0 -> 388 bytes
.../Debug/Project2.tlog/unsuccessfulbuild | 0
main.c | 12 ++++++++
sq_list.c | 11 +++++++
sq_list.h | 27 ++++++++++++++++++
16 files changed, 76 insertions(+), 17 deletions(-)
create mode 100644 Project2/Debug/Project2.exe.recipe
create mode 100644 Project2/Debug/Project2.tlog/CL.read.1.tlog
create mode 100644 Project2/Debug/Project2.tlog/CL.write.1.tlog
create mode 100644 Project2/Debug/Project2.tlog/Cl.items.tlog
create mode 100644 Project2/Debug/Project2.tlog/link.command.1.tlog
create mode 100644 Project2/Debug/Project2.tlog/link.read.1.tlog
create mode 100644 Project2/Debug/Project2.tlog/link.secondary.1.tlog
create mode 100644 Project2/Debug/Project2.tlog/link.write.1.tlog
delete mode 100644 Project2/Debug/Project2.tlog/unsuccessfulbuild
create mode 100644 main.c
create mode 100644 sq_list.c
create mode 100644 sq_list.h
diff --git a/Project2.vcxproj b/Project2.vcxproj
index e9b2866..3e14bd7 100644
--- a/Project2.vcxproj
+++ b/Project2.vcxproj
@@ -18,6 +18,13 @@
x64
+
+
+
+
+
+
+
17.0
Win32Proj
@@ -126,13 +133,6 @@
true
-
-
-
-
-
-
-
diff --git a/Project2.vcxproj.filters b/Project2.vcxproj.filters
index 9e071e9..241c01e 100644
--- a/Project2.vcxproj.filters
+++ b/Project2.vcxproj.filters
@@ -15,15 +15,15 @@
-
+
源文件
-
+
源文件
-
+
头文件
diff --git a/Project2/Debug/Project2.exe.recipe b/Project2/Debug/Project2.exe.recipe
new file mode 100644
index 0000000..5058dca
--- /dev/null
+++ b/Project2/Debug/Project2.exe.recipe
@@ -0,0 +1,11 @@
+
+
+
+
+ C:\code\lencode\Project2\Debug\Project2.exe
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Project2/Debug/Project2.log b/Project2/Debug/Project2.log
index 49f1b8f..864d6f9 100644
--- a/Project2/Debug/Project2.log
+++ b/Project2/Debug/Project2.log
@@ -1,10 +1,4 @@
main.c
sq_list.c
-L:\Documents\GitHub\learn_code\sq_list.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
- (编译源文件“L:/Documents/GitHub/learn_code/main.c”)
-
-L:\Documents\GitHub\learn_code\sq_list.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失
- (编译源文件“L:/Documents/GitHub/learn_code/sq_list.c”)
-
正在生成代码...
-L:\Documents\GitHub\learn_code\main.c(9,1): error C4700: 使用了未初始化的局部变量“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 46b134b197f35e75e0784bedbf94a8dd124693b1..fbd220b6af872f29f8ba7bce6f4525c1e515ece3 100644
GIT binary patch
literal 1446
zcmeH_NlyYn5QX2_#Q$Kpi%~pr(-{~cED9oq5Dj5b5=1iKfk3uiRYBHL`l%Y&%AkSHb$~}zM=Ify1=-e?_SDx7vIA;&8IQod
zrn=XJbHg!9Te;-E)UJCCG*%D0dCs*!>vQLk7Wtq%EEYM}0Nq}7UjAMtIYRWdW0ZrR
z*$laM^&G3ED1}*_H8qh|=cjKAwDeK+3SUPf7vq_FcXz|9XZI|5&Dx
zW>hp&tRenmqJ|Fdpyl<1yrl;*j29_Klxs`Di4`rmaHK;eC$xqa5olHDw$B#YSK~C3+s>dqL+9q
i^^#&~w!iP;Z+5w{VRL1zTMb0bZa+v2+y^9_sDZXFSWL{XvH~T=5i;GMw{;Lz(G&ha|%Vkza`9x
zX@|@Vp}hA*CLtO*)Ffk3xrFZ2=@p_?2#N{#tr&~ZcK|L8r>)SDz9|-Iamz0H$2r#$
z1cm8_u@$2!{g7+MO!1F*qiyRUSI@e%U4Hv;>O+yYfOtfXYr?xZI#pSl*r8Zu4PF6Ey>JLBQ(gkCd5(vxxRbs=S4@3sJ0`=7~P8)6zh@2koZ(
z!CUA?NVV`P`{cbqyP7#s9RAp_dUsK7m>RPd^
zbEv~Ou4_e|{r%th-f27Z@=pfpTJf(ZxOJ^q)|qZyD`q?5B3~EsS-q|m|Ms<}t`*Du
LI+pj}^VW(VlMU8=
literal 0
HcmV?d00001
diff --git a/Project2/Debug/Project2.tlog/CL.write.1.tlog b/Project2/Debug/Project2.tlog/CL.write.1.tlog
new file mode 100644
index 0000000000000000000000000000000000000000..0b3b0a88f1e8e974a32ea63acc2432c9cbaec4b9
GIT binary patch
literal 896
zcmezWFOI>P!HOXUNcuClFt`F)K0wkBi66ia1eEgviaIldFc<+<_%b*$cmmbv0Yz$n
zm{k4241o;sKzlqHf`KN2OyOnVBEuX^mw|lX#1P8h4s>N0&_qK969!|T4FN#EInmq}
kPny|+9%BAL-+0l)KZv+R*gf_>v6F%NYGduFrI-i}P6eEM
z|Mv{J4s}VLv2rS!=2_N~R>|21YpVW-tn)0Y92+n^Wz|(9i}4HTO9Wf%Ru9g}#FFU1
z^H(FBdw-{0s#+Vww39{r6dnny&8mS$#?e%N|XX?`CQ8J`(QCSX0@0G13Fvwo1!6=
zlr5{Swv;Hle&XjZ$`@*Bw@v^6
literal 0
HcmV?d00001
diff --git a/Project2/Debug/Project2.tlog/link.read.1.tlog b/Project2/Debug/Project2.tlog/link.read.1.tlog
new file mode 100644
index 0000000000000000000000000000000000000000..b275a898a696eb3608aa632520c068850d824144
GIT binary patch
literal 3854
zcmds)%T9wp6o${*#CKq+8)9oU#$BN;qEKo9Zz1|3KD+w;LlLhFVvQ5i3=DHQ^PlVd
zeSW&P*iNnCS=h|x^fI2yH{UB;Gk4BtY?X~!@p(i$BdaZ8Hn*vzNC?>#vF~x~CzN(+
z58zC#1W|X+uI+42YVjrDo`NQ@1uLah3A$^CZDwc8UE2jC(l&9U(td=zBiiW0Oz2jm
z)}PWzDv%?|31>*-sY7ZicCs;hB
zO<)%Xw4Ob*e52nXMl&pywbwUoR4ry$NL*1IaY%0ZsE>TPc0L#1lupBZw0&kNJQZ=&
z#ZT=J4vn2*xFU2H^A`X8n(=mM)}RTo(haT8{qOm$4?gd-J9AZ`dbMn)Q%puzSiOzs
q|D~Ji)ry#oc(2j(v+v&j8`8h6TUv!Ra(A1k{@uM=M?5rho__(4F9+ZN
literal 0
HcmV?d00001
diff --git a/Project2/Debug/Project2.tlog/link.secondary.1.tlog b/Project2/Debug/Project2.tlog/link.secondary.1.tlog
new file mode 100644
index 0000000..9204348
--- /dev/null
+++ b/Project2/Debug/Project2.tlog/link.secondary.1.tlog
@@ -0,0 +1,2 @@
+^C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\MAIN.OBJ|C:\CODE\LENCODE\PROJECT2\PROJECT2\DEBUG\SQ_LIST.OBJ
+C:\code\lencode\Project2\Project2\Debug\Project2.ilk
diff --git a/Project2/Debug/Project2.tlog/link.write.1.tlog b/Project2/Debug/Project2.tlog/link.write.1.tlog
new file mode 100644
index 0000000000000000000000000000000000000000..9d876fabf777a7f1352ccc4348d2ba9d56253544
GIT binary patch
literal 388
zcmezWFOI>P!HOXUNcuClFt`F)K0wkBi66ia1eEgviaIldFc<+g4x5%z(s~l$Sz0smmbhp5kO1}lLLUE
I?F2R%09fBRy8r+H
literal 0
HcmV?d00001
diff --git a/Project2/Debug/Project2.tlog/unsuccessfulbuild b/Project2/Debug/Project2.tlog/unsuccessfulbuild
deleted file mode 100644
index e69de29..0000000
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..77f1534
--- /dev/null
+++ b/main.c
@@ -0,0 +1,12 @@
+#include
+#include
+#include
+#include "sq_list.h"
+
+int main(void)
+{
+
+
+ printf("Hello World!\n");
+ return 0;
+}
\ No newline at end of file
diff --git a/sq_list.c b/sq_list.c
new file mode 100644
index 0000000..b4e7b45
--- /dev/null
+++ b/sq_list.c
@@ -0,0 +1,11 @@
+#include
+#include
+#include
+#include "sq_list.h"
+
+sq_list* init_sq_list(sq_list* name)
+{
+ name = (sq_list*)malloc(sizeof(sq_list));
+ memset(name, 0, sizeof(sq_list));
+ return name;
+}
diff --git a/sq_list.h b/sq_list.h
new file mode 100644
index 0000000..a996677
--- /dev/null
+++ b/sq_list.h
@@ -0,0 +1,27 @@
+#ifndef SQ_LIST_H
+#define SQ_LIST_H
+#define MAX 100
+
+typedef struct sq_list
+{
+ int data[MAX];
+ int length;
+} sq_list;
+
+// ʼ
+sq_list* init_sq_list(sq_list* name);
+
+// ɾ
+void delete_sq_list(sq_list* list);
+
+// 滻
+void replace_sq_list(sq_list* list, int pos, int value);
+
+//
+void insert_sq_list(sq_list* list, int pos, int value);
+
+// ӡ
+void print_sq_list(sq_list* list);
+
+#endif
+