舒适
This commit is contained in:
parent
04f1297d95
commit
a7ea423353
@ -18,6 +18,13 @@
|
|||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="main.c" />
|
||||||
|
<ClCompile Include="sq_list.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="sq_list.h" />
|
||||||
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<VCProjectVersion>17.0</VCProjectVersion>
|
<VCProjectVersion>17.0</VCProjectVersion>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
@ -126,13 +133,6 @@
|
|||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="L:\Documents\GitHub\learn_code\main.c" />
|
|
||||||
<ClCompile Include="L:\Documents\GitHub\learn_code\sq_list.c" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="L:\Documents\GitHub\learn_code\sq_list.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
@ -15,15 +15,15 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="L:\Documents\GitHub\learn_code\main.c">
|
<ClCompile Include="main.c">
|
||||||
<Filter>源文件</Filter>
|
<Filter>源文件</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="L:\Documents\GitHub\learn_code\sq_list.c">
|
<ClCompile Include="sq_list.c">
|
||||||
<Filter>源文件</Filter>
|
<Filter>源文件</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="L:\Documents\GitHub\learn_code\sq_list.h">
|
<ClInclude Include="sq_list.h">
|
||||||
<Filter>头文件</Filter>
|
<Filter>头文件</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
11
Project2/Debug/Project2.exe.recipe
Normal file
11
Project2/Debug/Project2.exe.recipe
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project>
|
||||||
|
<ProjectOutputs>
|
||||||
|
<ProjectOutput>
|
||||||
|
<FullPath>C:\code\lencode\Project2\Debug\Project2.exe</FullPath>
|
||||||
|
</ProjectOutput>
|
||||||
|
</ProjectOutputs>
|
||||||
|
<ContentFiles />
|
||||||
|
<SatelliteDlls />
|
||||||
|
<NonRecipeFileRefs />
|
||||||
|
</Project>
|
@ -1,10 +1,4 @@
|
|||||||
main.c
|
main.c
|
||||||
sq_list.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
|
||||||
|
Binary file not shown.
BIN
Project2/Debug/Project2.tlog/CL.read.1.tlog
Normal file
BIN
Project2/Debug/Project2.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
Project2/Debug/Project2.tlog/CL.write.1.tlog
Normal file
BIN
Project2/Debug/Project2.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
2
Project2/Debug/Project2.tlog/Cl.items.tlog
Normal file
2
Project2/Debug/Project2.tlog/Cl.items.tlog
Normal file
@ -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
|
BIN
Project2/Debug/Project2.tlog/link.command.1.tlog
Normal file
BIN
Project2/Debug/Project2.tlog/link.command.1.tlog
Normal file
Binary file not shown.
BIN
Project2/Debug/Project2.tlog/link.read.1.tlog
Normal file
BIN
Project2/Debug/Project2.tlog/link.read.1.tlog
Normal file
Binary file not shown.
2
Project2/Debug/Project2.tlog/link.secondary.1.tlog
Normal file
2
Project2/Debug/Project2.tlog/link.secondary.1.tlog
Normal file
@ -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
|
BIN
Project2/Debug/Project2.tlog/link.write.1.tlog
Normal file
BIN
Project2/Debug/Project2.tlog/link.write.1.tlog
Normal file
Binary file not shown.
12
main.c
Normal file
12
main.c
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include "sq_list.h"
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
printf("Hello World!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
11
sq_list.c
Normal file
11
sq_list.c
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#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;
|
||||||
|
}
|
27
sq_list.h
Normal file
27
sq_list.h
Normal file
@ -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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user