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 46b134b..fbd220b 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 new file mode 100644 index 0000000..c48d3ce Binary files /dev/null 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 new file mode 100644 index 0000000..0b3b0a8 Binary files /dev/null and b/Project2/Debug/Project2.tlog/CL.write.1.tlog differ diff --git a/Project2/Debug/Project2.tlog/Cl.items.tlog b/Project2/Debug/Project2.tlog/Cl.items.tlog new file mode 100644 index 0000000..380575c --- /dev/null +++ b/Project2/Debug/Project2.tlog/Cl.items.tlog @@ -0,0 +1,2 @@ +C:\code\lencode\Project2\main.c;C:\code\lencode\Project2\Project2\Debug\main.obj +C:\code\lencode\Project2\sq_list.c;C:\code\lencode\Project2\Project2\Debug\sq_list.obj diff --git a/Project2/Debug/Project2.tlog/link.command.1.tlog b/Project2/Debug/Project2.tlog/link.command.1.tlog new file mode 100644 index 0000000..d49b76f Binary files /dev/null and b/Project2/Debug/Project2.tlog/link.command.1.tlog differ 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 0000000..b275a89 Binary files /dev/null and b/Project2/Debug/Project2.tlog/link.read.1.tlog differ 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 0000000..9d876fa Binary files /dev/null and b/Project2/Debug/Project2.tlog/link.write.1.tlog differ 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 +