mirror of
https://github.com/Sheldoer/Suda_examination_notes.git
synced 2026-02-02 18:39:36 +08:00
第一次总结
This commit is contained in:
BIN
初试笔记/19苏大冲刺.pdf
Normal file
BIN
初试笔记/19苏大冲刺.pdf
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/.suo
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/.suo
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/Browse.VC.db
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/.vs/eg1.1/v16/Browse.VC.db
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11
初试笔记/c_prime_plus习题实现代码/chapter1.1/1.1.c
Normal file
11
初试笔记/c_prime_plus习题实现代码/chapter1.1/1.1.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include<stdio.h>
|
||||
int main(void)
|
||||
{
|
||||
int dogs;
|
||||
|
||||
printf("How many dogs do you have?\n");
|
||||
scanf_s("%d", &dogs);
|
||||
printf("So you have %d dog(s)!\n", dogs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/1.1.obj
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/1.1.obj
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.exe
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.exe
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.ilk
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.ilk
Normal file
Binary file not shown.
2
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.log
Normal file
2
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.log
Normal file
@@ -0,0 +1,2 @@
|
||||
1.1.c
|
||||
eg1.1.vcxproj -> E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.exe
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/eg1.1.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
|
||||
Debug|Win32|E:\allcode\c\primer_c_instance\eg1.1\|
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.exe
|
||||
E:\allcode\c\primer_c_instance\eg1.1\Debug\eg1.1.pdb
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.idb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter1.1/Debug/vc142.pdb
Normal file
Binary file not shown.
31
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.sln
Normal file
31
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.sln
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30225.117
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "eg1.1", "eg1.1.vcxproj", "{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x64.Build.0 = Debug|x64
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Debug|x86.Build.0 = Debug|Win32
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x64.ActiveCfg = Release|x64
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x64.Build.0 = Release|x64
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x86.ActiveCfg = Release|Win32
|
||||
{C6E14A07-3E4F-4E83-BFD3-ED0DA8A692FD}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {0EF34464-3D50-4C50-B2CF-7EB6D45CCF25}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
147
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj
Normal file
147
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{c6e14a07-3e4f-4e83-bfd3-ed0da8a692fd}</ProjectGuid>
|
||||
<RootNamespace>eg11</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="1.1.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
22
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.filters
Normal file
22
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.filters
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="源文件">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="头文件">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="资源文件">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="1.1.c">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
4
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.user
Normal file
4
初试笔记/c_prime_plus习题实现代码/chapter1.1/eg1.1.vcxproj.user
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/.suo
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/.vs/chapter10.18/v16/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.exe
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.exe
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.ilk
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.ilk
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
eg10.18.c
|
||||
E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(32,71): warning C4048: “int (*)[4]”和“int [2][6]”数组的下标不同
|
||||
E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(35,55): warning C4048: “int (*)[4]”和“int [3][10]”数组的下标不同
|
||||
E:\allcode\c\primer_c_instance\chapter10.18\eg10.18.c(41,35): warning C4028: 形参 3 与声明不同
|
||||
chapter10.18.vcxproj -> E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.exe
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/chapter10.18.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
|
||||
Debug|Win32|E:\allcode\c\primer_c_instance\chapter10.18\|
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.exe
|
||||
E:\allcode\c\primer_c_instance\chapter10.18\Debug\chapter10.18.pdb
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/eg10.18.obj
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/eg10.18.obj
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.idb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter10.18/Debug/vc142.pdb
Normal file
Binary file not shown.
31
初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.sln
Normal file
31
初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.sln
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30225.117
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter10.18", "chapter10.18.vcxproj", "{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x64.Build.0 = Debug|x64
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Debug|x86.Build.0 = Debug|Win32
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x64.ActiveCfg = Release|x64
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x64.Build.0 = Release|x64
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x86.ActiveCfg = Release|Win32
|
||||
{1BA800E6-6D11-450E-B293-9CB15FD2DBBF}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {7846A074-5DEE-4F4A-A23F-08ED0F5973B5}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
147
初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj
Normal file
147
初试笔记/c_prime_plus习题实现代码/chapter10.18/chapter10.18.vcxproj
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{1ba800e6-6d11-450e-b293-9cb15fd2dbbf}</ProjectGuid>
|
||||
<RootNamespace>chapter1018</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="eg10.18.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="源文件">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="头文件">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="资源文件">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="eg10.18.c">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
52
初试笔记/c_prime_plus习题实现代码/chapter10.18/eg10.18.c
Normal file
52
初试笔记/c_prime_plus习题实现代码/chapter10.18/eg10.18.c
Normal file
@@ -0,0 +1,52 @@
|
||||
#include<stdio.h>
|
||||
#define ROWS 3
|
||||
#define COLS 4
|
||||
int sum2d(int rows, int cols, int ar[3][4]);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i, j;
|
||||
int rs = 3;
|
||||
int cs = 10;
|
||||
int junk[ROWS][COLS] = {
|
||||
{2,4,6,8},
|
||||
{3,5,7,9},
|
||||
{12,10,8,6}
|
||||
};
|
||||
|
||||
int morejunk[ROWS - 1][COLS + 2] = {
|
||||
{20,30,40,50,60,70},
|
||||
{5,6,7,8,9,10}
|
||||
};
|
||||
|
||||
int varr[3][10];
|
||||
|
||||
for (i = 0; i < rs; i++)
|
||||
for (j = 0; j < cs; j++)
|
||||
varr[i][j] = i * j + j;
|
||||
|
||||
printf("3x5 array\n");
|
||||
printf("Sum of all elements=%d\n", sum2d(ROWS, COLS, junk));
|
||||
|
||||
printf("2x6 array\n");
|
||||
printf("Sum of all elements=%d\n", sum2d(ROWS - 1, COLS + 2, morejunk));
|
||||
|
||||
printf("3x10 VLA\n");
|
||||
printf("Sum of all elements=%d\n", sum2d(rs, cs, varr));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD>䳤<EFBFBD><E4B3A4><EFBFBD><EFBFBD><EFBFBD>βεĺ<CEB5><C4BA><EFBFBD>
|
||||
int sum2d(int rows, int cols, int ar[3][10])
|
||||
{
|
||||
int r;
|
||||
int c;
|
||||
int tot = 0;
|
||||
|
||||
for (r = 0; r < rows; r++)
|
||||
for (c = 0; c < cols; c++)
|
||||
tot += ar[r][c];
|
||||
|
||||
return tot;
|
||||
}
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/.suo
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/.vs/chapter11.1/v16/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.exe
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.exe
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.ilk
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.ilk
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
eg11.1.c
|
||||
chapter11.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.exe
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/chapter11.1.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
|
||||
Debug|Win32|E:\allcode\c\primer_c_instance\chapter11.1\|
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.exe
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\Debug\chapter11.1.pdb
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.obj
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.obj
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.pch
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/eg11.1.pch
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.idb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc142.pdb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.idb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.idb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/Debug/vc60.pdb
Normal file
Binary file not shown.
31
初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.sln
Normal file
31
初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.sln
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30225.117
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chapter11.1", "chapter11.1.vcxproj", "{01188642-C363-4E55-8DAB-0EB62B559260}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x64.Build.0 = Debug|x64
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Debug|x86.Build.0 = Debug|Win32
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Release|x64.ActiveCfg = Release|x64
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Release|x64.Build.0 = Release|x64
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Release|x86.ActiveCfg = Release|Win32
|
||||
{01188642-C363-4E55-8DAB-0EB62B559260}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {45D9B4A7-6FB0-4E8C-9DD8-DB737075891A}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
147
初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj
Normal file
147
初试笔记/c_prime_plus习题实现代码/chapter11.1/chapter11.1.vcxproj
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{01188642-c363-4e55-8dab-0eb62b559260}</ProjectGuid>
|
||||
<RootNamespace>chapter111</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="eg11.1.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="源文件">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="头文件">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="资源文件">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="eg11.1.c">
|
||||
<Filter>源文件</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
25
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.c
Normal file
25
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.c
Normal file
@@ -0,0 +1,25 @@
|
||||
#include<stdio.h>
|
||||
#define MSG "I am a symbolic string constant."
|
||||
#define MAXLENGTH 81
|
||||
|
||||
int* test(int num[])
|
||||
{
|
||||
|
||||
int* p = num;
|
||||
return p;
|
||||
}
|
||||
void test2( int *p)
|
||||
{
|
||||
printf("%d\n", *p);
|
||||
printf("%d\n", *(p++));
|
||||
printf("%d\n", *(++p));
|
||||
}
|
||||
int main(void)
|
||||
{
|
||||
int num[] = { 1,5,3,4,5,6 };
|
||||
int* p = test(num);
|
||||
//printf("%p\n", *p);
|
||||
test2(p);
|
||||
|
||||
return 0;
|
||||
}
|
||||
88
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsp
Normal file
88
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsp
Normal file
@@ -0,0 +1,88 @@
|
||||
# Microsoft Developer Studio Project File - Name="eg11.1" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=eg11.1 - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "eg11.1.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "eg11.1.mak" CFG="eg11.1 - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "eg11.1 - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "eg11.1 - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "eg11.1 - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x804 /d "NDEBUG"
|
||||
# ADD RSC /l 0x804 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "eg11.1 - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x804 /d "_DEBUG"
|
||||
# ADD RSC /l 0x804 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "eg11.1 - Win32 Release"
|
||||
# Name "eg11.1 - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\eg11.1.c
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
29
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsw
Normal file
29
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.dsw
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# <20><><EFBFBD><EFBFBD>: <20><><EFBFBD>ܱ༭<DCB1><E0BCAD>ɾ<EFBFBD><C9BE><EFBFBD>ù<EFBFBD><C3B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "eg11.1"=.\eg11.1.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.ncb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.ncb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.opt
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.opt
Normal file
Binary file not shown.
37
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.plg
Normal file
37
初试笔记/c_prime_plus习题实现代码/chapter11.1/eg11.1.plg
Normal file
@@ -0,0 +1,37 @@
|
||||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<h1>Build Log</h1>
|
||||
<h3>
|
||||
--------------------Configuration: eg11.1 - Win32 Debug--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSPF55A.tmp" with contents
|
||||
[
|
||||
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/eg11.1.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
|
||||
"E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c"
|
||||
]
|
||||
Creating command line "cl.exe @C:\Users\18295\AppData\Local\Temp\RSPF55A.tmp"
|
||||
Creating temporary file "C:\Users\18295\AppData\Local\Temp\RSPF55B.tmp" with contents
|
||||
[
|
||||
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/eg11.1.pdb" /debug /machine:I386 /out:"Debug/eg11.1.exe" /pdbtype:sept
|
||||
.\Debug\eg11.1.obj
|
||||
]
|
||||
Creating command line "link.exe @C:\Users\18295\AppData\Local\Temp\RSPF55B.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
eg11.1.c
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(26) : error C2143: syntax error : missing ';' before 'type'
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : error C2065: 'p' : undeclared identifier
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : error C2100: illegal indirection
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : warning C4047: 'function' : 'int *' differs in levels of indirection from 'int '
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\eg11.1.c(27) : warning C4024: 'test2' : different types for formal and actual parameter 1
|
||||
ִ<EFBFBD><EFBFBD> cl.exe ʱ<><CAB1><EFBFBD><EFBFBD>.
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
eg11.1.exe - 1 error(s), 0 warning(s)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.exe
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.exe
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.ilk
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.ilk
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
eg11.1.c
|
||||
chapter11.1.vcxproj -> E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.exe
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/chapter11.1.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
|
||||
Debug|x64|E:\allcode\c\primer_c_instance\chapter11.1\|
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.exe
|
||||
E:\allcode\c\primer_c_instance\chapter11.1\x64\Debug\chapter11.1.pdb
|
||||
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/eg11.1.obj
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/eg11.1.obj
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.idb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.pdb
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.1/x64/Debug/vc142.pdb
Normal file
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/.suo
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.29/.vs/chapter11.29/v16/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.exe
Normal file
BIN
初试笔记/c_prime_plus习题实现代码/chapter11.29/Debug/chapter11.29.exe
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user