Skip to content

Commit f6c5804

Browse files
committed
1.2.19 Finished
1 parent 353dea2 commit f6c5804

File tree

5 files changed

+140
-0
lines changed

5 files changed

+140
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{FB992740-9391-4C32-B63E-8FB12006B2D5}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>_1._2._19</RootNamespace>
10+
<AssemblyName>1.2.19</AssemblyName>
11+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="System" />
36+
<Reference Include="System.Core" />
37+
<Reference Include="System.Xml.Linq" />
38+
<Reference Include="System.Data.DataSetExtensions" />
39+
<Reference Include="Microsoft.CSharp" />
40+
<Reference Include="System.Data" />
41+
<Reference Include="System.Net.Http" />
42+
<Reference Include="System.Xml" />
43+
</ItemGroup>
44+
<ItemGroup>
45+
<Compile Include="Program.cs" />
46+
<Compile Include="Properties\AssemblyInfo.cs" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<None Include="App.config" />
50+
</ItemGroup>
51+
<ItemGroup>
52+
<ProjectReference Include="..\Commercial\Commercial.csproj">
53+
<Project>{2793060d-8f90-4a08-8cc3-2d9db25ca0ec}</Project>
54+
<Name>Commercial</Name>
55+
</ProjectReference>
56+
</ItemGroup>
57+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
58+
</Project>
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+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
5+
</startup>
6+
</configuration>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using Commercial;
7+
8+
namespace _1._2._19
9+
{
10+
/*
11+
* 1.2.19
12+
*
13+
* 字符串解析。
14+
* 为你在练习 1.2.13 中实现的 Date 和 Transaction 类型编写能够解析字符串数据的构造函数。
15+
* 它接受一个 String 参数指定的初始值,格式如下所示:
16+
*
17+
* Date: 5/22/1939 月/日/年
18+
* Transaction: Turing 5/22/1939 11.99 姓名 日期 金额
19+
*
20+
*/
21+
class Program
22+
{
23+
//见 Commercial 库中的 Date.cs 和 Transaction.cs
24+
static void Main(string[] args)
25+
{
26+
Date d = new Date("5/22/1939");
27+
Console.WriteLine(d);
28+
29+
Transaction a = new Transaction("Turing 01/01/1991 12.12");
30+
Console.WriteLine(a);
31+
}
32+
}
33+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// 有关程序集的一般信息由以下
6+
// 控制。更改这些特性值可修改
7+
// 与程序集关联的信息。
8+
[assembly: AssemblyTitle("1.2.19")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("1.2.19")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// 将 ComVisible 设置为 false 会使此程序集中的类型
18+
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19+
//请将此类型的 ComVisible 特性设置为 true。
20+
[assembly: ComVisible(false)]
21+
22+
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23+
[assembly: Guid("fb992740-9391-4c32-b63e-8fb12006b2d5")]
24+
25+
// 程序集的版本信息由下列四个值组成:
26+
//
27+
// 主版本
28+
// 次版本
29+
// 生成号
30+
// 修订号
31+
//
32+
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
33+
// 方法是按如下所示使用“*”: :
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

Algorithms 4th Edition.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "1.2.17", "1 Fundamental\1.2
145145
EndProject
146146
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "1.2.18", "1 Fundamental\1.2\1.2.18\1.2.18.csproj", "{3BBA4BF1-2037-4DC2-8CC5-11F5B7165C8D}"
147147
EndProject
148+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "1.2.19", "1 Fundamental\1.2\1.2.19\1.2.19.csproj", "{FB992740-9391-4C32-B63E-8FB12006B2D5}"
149+
EndProject
148150
Global
149151
GlobalSection(SolutionConfigurationPlatforms) = preSolution
150152
Debug|Any CPU = Debug|Any CPU
@@ -387,6 +389,10 @@ Global
387389
{3BBA4BF1-2037-4DC2-8CC5-11F5B7165C8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
388390
{3BBA4BF1-2037-4DC2-8CC5-11F5B7165C8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
389391
{3BBA4BF1-2037-4DC2-8CC5-11F5B7165C8D}.Release|Any CPU.Build.0 = Release|Any CPU
392+
{FB992740-9391-4C32-B63E-8FB12006B2D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
393+
{FB992740-9391-4C32-B63E-8FB12006B2D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
394+
{FB992740-9391-4C32-B63E-8FB12006B2D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
395+
{FB992740-9391-4C32-B63E-8FB12006B2D5}.Release|Any CPU.Build.0 = Release|Any CPU
390396
EndGlobalSection
391397
GlobalSection(SolutionProperties) = preSolution
392398
HideSolutionNode = FALSE
@@ -459,5 +465,6 @@ Global
459465
{2AF0C58F-9CCB-457D-97C5-C73DB45F31BD} = {9D948552-DF2E-412F-AEA6-B59F8BB708C5}
460466
{45B8DC5B-4439-42DF-AD86-40548C5CD01D} = {1EF9D9DA-B4CF-4467-A5F4-CDBACEAA34CD}
461467
{3BBA4BF1-2037-4DC2-8CC5-11F5B7165C8D} = {1EF9D9DA-B4CF-4467-A5F4-CDBACEAA34CD}
468+
{FB992740-9391-4C32-B63E-8FB12006B2D5} = {1EF9D9DA-B4CF-4467-A5F4-CDBACEAA34CD}
462469
EndGlobalSection
463470
EndGlobal

0 commit comments

Comments
 (0)