diff --git a/.vs/c-sharp/v16/.suo b/.vs/c-sharp/v16/.suo index 0caa0b5..e84497d 100644 Binary files a/.vs/c-sharp/v16/.suo and b/.vs/c-sharp/v16/.suo differ diff --git a/MinMax/App.config b/MinMax/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/MinMax/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MinMax/MinMax.csproj b/MinMax/MinMax.csproj new file mode 100644 index 0000000..4554fd5 --- /dev/null +++ b/MinMax/MinMax.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {8812376D-8182-4569-972D-A83C8239CA36} + Exe + MinMax + MinMax + v4.7.2 + 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 diff --git a/MinMax/Program.cs b/MinMax/Program.cs new file mode 100644 index 0000000..ca077df --- /dev/null +++ b/MinMax/Program.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MinMax { + class Program { + static void Main(string[] args) { + Random random = new Random(); + + int[] arr = new int[1000]; + + //random elemek hozzaadasa a tombhoz + for (int i = 0; i < arr.Length; i++) { + arr[i] = random.Next(Int32.MinValue,Int32.MaxValue); + } + + + //tomb elemeinek kiiratasa + /*for (int i = 0; i < arr.Length; i++) { + Console.WriteLine(arr[i]); + }*/ + + int min = Int32.MaxValue; + int min_i = -1; + + for (int i = 0; i < arr.Length; i++) { + if(min > arr[i]) { + min = arr[i]; + min_i = i; + } + } + + + + Console.ReadKey(); + } + } +} diff --git a/MinMax/Properties/AssemblyInfo.cs b/MinMax/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..cfbef0b --- /dev/null +++ b/MinMax/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("MinMax")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MinMax")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[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("8812376d-8182-4569-972d-a83c8239ca36")] + +// 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")] diff --git a/MinMax/bin/Debug/MinMax.exe b/MinMax/bin/Debug/MinMax.exe new file mode 100644 index 0000000..bc01362 Binary files /dev/null and b/MinMax/bin/Debug/MinMax.exe differ diff --git a/MinMax/bin/Debug/MinMax.exe.config b/MinMax/bin/Debug/MinMax.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/MinMax/bin/Debug/MinMax.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MinMax/bin/Debug/MinMax.pdb b/MinMax/bin/Debug/MinMax.pdb new file mode 100644 index 0000000..0cea279 Binary files /dev/null and b/MinMax/bin/Debug/MinMax.pdb differ diff --git a/MinMax/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/MinMax/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/MinMax/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d8bfd7e Binary files /dev/null and b/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache b/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f5e894a Binary files /dev/null and b/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache differ diff --git a/MinMax/obj/Debug/MinMax.csproj.CoreCompileInputs.cache b/MinMax/obj/Debug/MinMax.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/MinMax/obj/Debug/MinMax.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt b/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e703e4d --- /dev/null +++ b/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.exe.config +C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.exe +C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.pdb +C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.csproj.AssemblyReference.cache +C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.csproj.CoreCompileInputs.cache +C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.exe +C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.pdb diff --git a/MinMax/obj/Debug/MinMax.exe b/MinMax/obj/Debug/MinMax.exe new file mode 100644 index 0000000..bc01362 Binary files /dev/null and b/MinMax/obj/Debug/MinMax.exe differ diff --git a/MinMax/obj/Debug/MinMax.pdb b/MinMax/obj/Debug/MinMax.pdb new file mode 100644 index 0000000..0cea279 Binary files /dev/null and b/MinMax/obj/Debug/MinMax.pdb differ diff --git a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.FileListAbsolute.txt b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.FileListAbsolute.txt index b41e68a..2c93649 100644 --- a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.FileListAbsolute.txt +++ b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.FileListAbsolute.txt @@ -1,7 +1,7 @@ -C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.AssemblyReference.cache -C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.CoreCompileInputs.cache C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.exe.config C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.exe C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.pdb +C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.AssemblyReference.cache +C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.CoreCompileInputs.cache C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.exe C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.pdb diff --git a/c-sharp.sln b/c-sharp.sln index 5a87778..d778c71 100644 --- a/c-sharp.sln +++ b/c-sharp.sln @@ -1,12 +1,14 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.32112.339 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32106.194 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "c-sharp", "c-sharp\c-sharp.csproj", "{A6876A09-53D2-47AF-A648-81BAD791D19D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Szamkitalalo", "Szamkitalalo\Szamkitalalo.csproj", "{B1FFC5C5-05EB-454B-BC64-505E246CA686}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinMax", "MinMax\MinMax.csproj", "{8812376D-8182-4569-972D-A83C8239CA36}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {B1FFC5C5-05EB-454B-BC64-505E246CA686}.Debug|Any CPU.Build.0 = Debug|Any CPU {B1FFC5C5-05EB-454B-BC64-505E246CA686}.Release|Any CPU.ActiveCfg = Release|Any CPU {B1FFC5C5-05EB-454B-BC64-505E246CA686}.Release|Any CPU.Build.0 = Release|Any CPU + {8812376D-8182-4569-972D-A83C8239CA36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8812376D-8182-4569-972D-A83C8239CA36}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8812376D-8182-4569-972D-A83C8239CA36}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8812376D-8182-4569-972D-A83C8239CA36}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache b/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache deleted file mode 100644 index 0da8ef2..0000000 Binary files a/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache and /dev/null differ diff --git a/c-sharp/obj/Debug/c-sharp.csproj.FileListAbsolute.txt b/c-sharp/obj/Debug/c-sharp.csproj.FileListAbsolute.txt index 2375fc5..6a133b4 100644 --- a/c-sharp/obj/Debug/c-sharp.csproj.FileListAbsolute.txt +++ b/c-sharp/obj/Debug/c-sharp.csproj.FileListAbsolute.txt @@ -1,7 +1,6 @@ C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.exe.config C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.exe C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.pdb -C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.csproj.AssemblyReference.cache C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.csproj.CoreCompileInputs.cache C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.exe C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.pdb