diff --git "a/\346\235\216\346\263\275/StringNameUse.sln" "b/\346\235\216\346\263\275/StringNameUse.sln" new file mode 100644 index 0000000000000000000000000000000000000000..85ca907c7112e1452ff94f428d5e2adb26effa72 --- /dev/null +++ "b/\346\235\216\346\263\275/StringNameUse.sln" @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.1145 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StringNameUse", "StringNameUse\StringNameUse.csproj", "{578CFFE2-FA2E-4285-8D68-3A3693315F4E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {578CFFE2-FA2E-4285-8D68-3A3693315F4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {578CFFE2-FA2E-4285-8D68-3A3693315F4E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {578CFFE2-FA2E-4285-8D68-3A3693315F4E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {578CFFE2-FA2E-4285-8D68-3A3693315F4E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1FB61DDC-9336-4E5B-B73D-8B23B3611EC6} + EndGlobalSection +EndGlobal diff --git "a/\346\235\216\346\263\275/StringNameUse/App.config" "b/\346\235\216\346\263\275/StringNameUse/App.config" new file mode 100644 index 0000000000000000000000000000000000000000..731f6de6c291e303814b02808f34140fe560e8e4 --- /dev/null +++ "b/\346\235\216\346\263\275/StringNameUse/App.config" @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git "a/\346\235\216\346\263\275/StringNameUse/Program.cs" "b/\346\235\216\346\263\275/StringNameUse/Program.cs" new file mode 100644 index 0000000000000000000000000000000000000000..ce1405bf1f2e34110e3b07f00f0c03e9077180da --- /dev/null +++ "b/\346\235\216\346\263\275/StringNameUse/Program.cs" @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StringNameUse +{ + class Program + { + static void Main(string[] args) + { + int[] a = new int[5]; + Console.WriteLine("输入5个数字"); + for(int i=0; i < a.Length; i++) + { + a[i] = int.Parse(Console.ReadLine()); + } + int max = a[0]; + for(int i = 1; i < a.Length; i++) + { + if (a[i] > max) + { + max = a[i]; + } + + } + Console.WriteLine("最大值是" + max); + } + } +} diff --git "a/\346\235\216\346\263\275/StringNameUse/Properties/AssemblyInfo.cs" "b/\346\235\216\346\263\275/StringNameUse/Properties/AssemblyInfo.cs" new file mode 100644 index 0000000000000000000000000000000000000000..1e50ca5d351c35b73122b46edd0321f83d79bffd --- /dev/null +++ "b/\346\235\216\346\263\275/StringNameUse/Properties/AssemblyInfo.cs" @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("StringNameUse")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("StringNameUse")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("578cffe2-fa2e-4285-8d68-3a3693315f4e")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 +// 方法是按如下所示使用“*”: : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git "a/\346\235\216\346\263\275/StringNameUse/StringNameUse.csproj" "b/\346\235\216\346\263\275/StringNameUse/StringNameUse.csproj" new file mode 100644 index 0000000000000000000000000000000000000000..3347b125148072d55fd5e6c40c5ad4f937d64e87 --- /dev/null +++ "b/\346\235\216\346\263\275/StringNameUse/StringNameUse.csproj" @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {578CFFE2-FA2E-4285-8D68-3A3693315F4E} + Exe + StringNameUse + StringNameUse + v4.6.1 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file