From e2bdeaf2ca839a4d1413f76b3eb12b91196413f0 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sat, 10 Jun 2017 09:06:28 +0200 Subject: [PATCH] create project about arrays --- software/1_sem/arrays/arrays.sln | 22 ++++++++ software/1_sem/arrays/arrays/Program.cs | 25 +++++++++ .../arrays/arrays/Properties/AssemblyInfo.cs | 36 ++++++++++++ software/1_sem/arrays/arrays/arrays.csproj | 56 +++++++++++++++++++ 4 files changed, 139 insertions(+) create mode 100644 software/1_sem/arrays/arrays.sln create mode 100644 software/1_sem/arrays/arrays/Program.cs create mode 100644 software/1_sem/arrays/arrays/Properties/AssemblyInfo.cs create mode 100644 software/1_sem/arrays/arrays/arrays.csproj diff --git a/software/1_sem/arrays/arrays.sln b/software/1_sem/arrays/arrays.sln new file mode 100644 index 0000000..5ddcde2 --- /dev/null +++ b/software/1_sem/arrays/arrays.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.0.0 +MinimumVisualStudioVersion = 10.0.0.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "arrays", "arrays/arrays.csproj", "{B0071DE0-1FC6-47F5-9337-8ACEE05987C2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0071DE0-1FC6-47F5-9337-8ACEE05987C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0071DE0-1FC6-47F5-9337-8ACEE05987C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0071DE0-1FC6-47F5-9337-8ACEE05987C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0071DE0-1FC6-47F5-9337-8ACEE05987C2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/software/1_sem/arrays/arrays/Program.cs b/software/1_sem/arrays/arrays/Program.cs new file mode 100644 index 0000000..d0ecf77 --- /dev/null +++ b/software/1_sem/arrays/arrays/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace arrays +{ + internal class Program + { + public static void Main(string[] args) + { + int[] arr = new int[5]; + arr[0] = 1; + arr[1] = 2; + arr[2] = 3; + arr[3] = 4; + arr[4] = 5; + + for (int i = 0; i < 5; i++) + { + Console.WriteLine(arr[i]); + } + + Console.ReadLine(); + } + } +} \ No newline at end of file diff --git a/software/1_sem/arrays/arrays/Properties/AssemblyInfo.cs b/software/1_sem/arrays/arrays/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5909239 --- /dev/null +++ b/software/1_sem/arrays/arrays/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("arrays")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("arrays")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("B0071DE0-1FC6-47F5-9337-8ACEE05987C2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/software/1_sem/arrays/arrays/arrays.csproj b/software/1_sem/arrays/arrays/arrays.csproj new file mode 100644 index 0000000..6887e64 --- /dev/null +++ b/software/1_sem/arrays/arrays/arrays.csproj @@ -0,0 +1,56 @@ + + + + + Debug + AnyCPU + {B0071DE0-1FC6-47F5-9337-8ACEE05987C2} + {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + Properties + arrays + arrays + v4.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + +