Skip to content

Commit 69fdbb4

Browse files
committed
first commit
0 parents  commit 69fdbb4

6 files changed

Lines changed: 294 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/Release
2+
/Debug
3+
/.vs
4+
/arg.txt

C_ArgTester.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30114.105
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "C_ArgTester", "C_ArgTester.vcxproj", "{3738A606-AE86-4730-A3A7-7CA6DFF0B130}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM = Debug|ARM
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|ARM = Release|ARM
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|ARM.ActiveCfg = Debug|Win32
19+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|ARM.Build.0 = Debug|Win32
20+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|x64.ActiveCfg = Debug|x64
21+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|x64.Build.0 = Debug|x64
22+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|x86.ActiveCfg = Debug|Win32
23+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Debug|x86.Build.0 = Debug|Win32
24+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|ARM.ActiveCfg = Release|ARM
25+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|ARM.Build.0 = Release|ARM
26+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|x64.ActiveCfg = Release|x64
27+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|x64.Build.0 = Release|x64
28+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|x86.ActiveCfg = Release|Win32
29+
{3738A606-AE86-4730-A3A7-7CA6DFF0B130}.Release|x86.Build.0 = Release|Win32
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {8DA4D6C3-D6CA-4957-80E0-48815E7DF687}
36+
EndGlobalSection
37+
EndGlobal

C_ArgTester.vcxproj

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|ARM">
5+
<Configuration>Debug</Configuration>
6+
<Platform>ARM</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|Win32">
9+
<Configuration>Debug</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|ARM">
13+
<Configuration>Release</Configuration>
14+
<Platform>ARM</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|Win32">
17+
<Configuration>Release</Configuration>
18+
<Platform>Win32</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="Debug|x64">
21+
<Configuration>Debug</Configuration>
22+
<Platform>x64</Platform>
23+
</ProjectConfiguration>
24+
<ProjectConfiguration Include="Release|x64">
25+
<Configuration>Release</Configuration>
26+
<Platform>x64</Platform>
27+
</ProjectConfiguration>
28+
</ItemGroup>
29+
<PropertyGroup Label="Globals">
30+
<VCProjectVersion>16.0</VCProjectVersion>
31+
<Keyword>Win32Proj</Keyword>
32+
<ProjectGuid>{3738a606-ae86-4730-a3a7-7ca6dff0b130}</ProjectGuid>
33+
<RootNamespace>CArgTester</RootNamespace>
34+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
35+
</PropertyGroup>
36+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
37+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
38+
<ConfigurationType>Application</ConfigurationType>
39+
<UseDebugLibraries>true</UseDebugLibraries>
40+
<PlatformToolset>v142</PlatformToolset>
41+
<CharacterSet>Unicode</CharacterSet>
42+
</PropertyGroup>
43+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
44+
<ConfigurationType>Application</ConfigurationType>
45+
<UseDebugLibraries>false</UseDebugLibraries>
46+
<PlatformToolset>v142</PlatformToolset>
47+
<WholeProgramOptimization>true</WholeProgramOptimization>
48+
<CharacterSet>Unicode</CharacterSet>
49+
</PropertyGroup>
50+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
51+
<ConfigurationType>Application</ConfigurationType>
52+
<UseDebugLibraries>true</UseDebugLibraries>
53+
<PlatformToolset>v142</PlatformToolset>
54+
<CharacterSet>Unicode</CharacterSet>
55+
</PropertyGroup>
56+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
57+
<ConfigurationType>Application</ConfigurationType>
58+
<UseDebugLibraries>true</UseDebugLibraries>
59+
<PlatformToolset>v142</PlatformToolset>
60+
<CharacterSet>Unicode</CharacterSet>
61+
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
63+
<ConfigurationType>Application</ConfigurationType>
64+
<UseDebugLibraries>false</UseDebugLibraries>
65+
<PlatformToolset>v142</PlatformToolset>
66+
<WholeProgramOptimization>true</WholeProgramOptimization>
67+
<CharacterSet>Unicode</CharacterSet>
68+
</PropertyGroup>
69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
70+
<ConfigurationType>Application</ConfigurationType>
71+
<UseDebugLibraries>false</UseDebugLibraries>
72+
<PlatformToolset>v142</PlatformToolset>
73+
<WholeProgramOptimization>true</WholeProgramOptimization>
74+
<CharacterSet>Unicode</CharacterSet>
75+
</PropertyGroup>
76+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
77+
<ImportGroup Label="ExtensionSettings">
78+
</ImportGroup>
79+
<ImportGroup Label="Shared">
80+
</ImportGroup>
81+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
82+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83+
</ImportGroup>
84+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
85+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86+
</ImportGroup>
87+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
88+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
89+
</ImportGroup>
90+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
91+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
92+
</ImportGroup>
93+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
94+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
95+
</ImportGroup>
96+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
97+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
98+
</ImportGroup>
99+
<PropertyGroup Label="UserMacros" />
100+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
101+
<LinkIncremental>true</LinkIncremental>
102+
</PropertyGroup>
103+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
104+
<LinkIncremental>false</LinkIncremental>
105+
</PropertyGroup>
106+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
107+
<LinkIncremental>true</LinkIncremental>
108+
</PropertyGroup>
109+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
110+
<LinkIncremental>true</LinkIncremental>
111+
</PropertyGroup>
112+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
113+
<LinkIncremental>false</LinkIncremental>
114+
</PropertyGroup>
115+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
116+
<LinkIncremental>false</LinkIncremental>
117+
</PropertyGroup>
118+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
119+
<ClCompile>
120+
<WarningLevel>Level3</WarningLevel>
121+
<SDLCheck>false</SDLCheck>
122+
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
123+
<ConformanceMode>true</ConformanceMode>
124+
</ClCompile>
125+
<Link>
126+
<SubSystem>Console</SubSystem>
127+
<GenerateDebugInformation>true</GenerateDebugInformation>
128+
</Link>
129+
</ItemDefinitionGroup>
130+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
131+
<ClCompile>
132+
<WarningLevel>Level3</WarningLevel>
133+
<FunctionLevelLinking>true</FunctionLevelLinking>
134+
<IntrinsicFunctions>true</IntrinsicFunctions>
135+
<SDLCheck>false</SDLCheck>
136+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
137+
<ConformanceMode>true</ConformanceMode>
138+
</ClCompile>
139+
<Link>
140+
<SubSystem>Console</SubSystem>
141+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
142+
<OptimizeReferences>true</OptimizeReferences>
143+
<GenerateDebugInformation>true</GenerateDebugInformation>
144+
</Link>
145+
</ItemDefinitionGroup>
146+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
147+
<ClCompile>
148+
<WarningLevel>Level3</WarningLevel>
149+
<SDLCheck>true</SDLCheck>
150+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
151+
<ConformanceMode>true</ConformanceMode>
152+
</ClCompile>
153+
<Link>
154+
<SubSystem>Console</SubSystem>
155+
<GenerateDebugInformation>true</GenerateDebugInformation>
156+
</Link>
157+
</ItemDefinitionGroup>
158+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
159+
<ClCompile>
160+
<WarningLevel>Level3</WarningLevel>
161+
<SDLCheck>true</SDLCheck>
162+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
163+
<ConformanceMode>true</ConformanceMode>
164+
</ClCompile>
165+
<Link>
166+
<SubSystem>Console</SubSystem>
167+
<GenerateDebugInformation>true</GenerateDebugInformation>
168+
</Link>
169+
</ItemDefinitionGroup>
170+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
171+
<ClCompile>
172+
<WarningLevel>Level3</WarningLevel>
173+
<FunctionLevelLinking>true</FunctionLevelLinking>
174+
<IntrinsicFunctions>true</IntrinsicFunctions>
175+
<SDLCheck>true</SDLCheck>
176+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
177+
<ConformanceMode>true</ConformanceMode>
178+
</ClCompile>
179+
<Link>
180+
<SubSystem>Console</SubSystem>
181+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
182+
<OptimizeReferences>true</OptimizeReferences>
183+
<GenerateDebugInformation>true</GenerateDebugInformation>
184+
</Link>
185+
</ItemDefinitionGroup>
186+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
187+
<ClCompile>
188+
<WarningLevel>Level3</WarningLevel>
189+
<FunctionLevelLinking>true</FunctionLevelLinking>
190+
<IntrinsicFunctions>true</IntrinsicFunctions>
191+
<SDLCheck>true</SDLCheck>
192+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
193+
<ConformanceMode>true</ConformanceMode>
194+
</ClCompile>
195+
<Link>
196+
<SubSystem>Console</SubSystem>
197+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
198+
<OptimizeReferences>true</OptimizeReferences>
199+
<GenerateDebugInformation>true</GenerateDebugInformation>
200+
</Link>
201+
</ItemDefinitionGroup>
202+
<ItemGroup>
203+
<ClCompile Include="main.c" />
204+
</ItemGroup>
205+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
206+
<ImportGroup Label="ExtensionTargets">
207+
</ImportGroup>
208+
</Project>

C_ArgTester.vcxproj.filters

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="源文件">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="头文件">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="资源文件">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
</ItemGroup>
17+
<ItemGroup>
18+
<ClCompile Include="main.c">
19+
<Filter>源文件</Filter>
20+
</ClCompile>
21+
</ItemGroup>
22+
</Project>

C_ArgTester.vcxproj.user

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<ShowAllFiles>true</ShowAllFiles>
5+
</PropertyGroup>
6+
</Project>

main.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
int main(int argc, char *argv[]) {
4+
system("title Argument Tester");
5+
FILE* file = NULL;
6+
file=fopen("arg.txt", "w");
7+
printf("Amount of arguments : %d\n", argc);
8+
fprintf(file,"Amount of arguments : %d\n",argc);
9+
for (int i = 0; i < argc; i++) {
10+
printf("Argument %d: %s\n", i, argv[i]);
11+
fprintf(file, "Argument %d: %s\n", i, argv[i]);
12+
}
13+
fclose(file);
14+
printf("\nThe contents above have been written to file \"arg.txt\" successfully.\n\n");
15+
system("pause");
16+
return 0;
17+
}

0 commit comments

Comments
 (0)