diff --git a/.vs/c-sharp/project-colors.json b/.vs/c-sharp/project-colors.json index 28e40bc..a586eca 100644 --- a/.vs/c-sharp/project-colors.json +++ b/.vs/c-sharp/project-colors.json @@ -10,7 +10,27 @@ "ProjectGuid": "b1ffc5c5-05eb-454b-bc64-505e246ca686", "DisplayName": "Szamkitalalo", "ColorIndex": 1 + }, + "8812376d-8182-4569-972d-a83c8239ca36": { + "ProjectGuid": "8812376d-8182-4569-972d-a83c8239ca36", + "DisplayName": "MinMax", + "ColorIndex": 2 + }, + "81ea1bcf-48a1-4c1b-b6a9-23d49dc2e820": { + "ProjectGuid": "81ea1bcf-48a1-4c1b-b6a9-23d49dc2e820", + "DisplayName": "Szigetek", + "ColorIndex": 3 + }, + "8d40bf01-637c-428a-b86d-805e42e109b4": { + "ProjectGuid": "8d40bf01-637c-428a-b86d-805e42e109b4", + "DisplayName": "AtlagHom", + "ColorIndex": 4 + }, + "406a5bb9-3836-40ab-b742-5bbe18bad1ed": { + "ProjectGuid": "406a5bb9-3836-40ab-b742-5bbe18bad1ed", + "DisplayName": "BuborekRendezes", + "ColorIndex": 5 } }, - "NextColorIndex": 2 + "NextColorIndex": 6 } \ No newline at end of file diff --git a/.vs/c-sharp/v17/.suo b/.vs/c-sharp/v17/.suo index ed289d8..e938edf 100644 Binary files a/.vs/c-sharp/v17/.suo and b/.vs/c-sharp/v17/.suo differ diff --git a/AtlagHom/App.config b/AtlagHom/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/AtlagHom/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AtlagHom/AtlagHom.csproj b/AtlagHom/AtlagHom.csproj new file mode 100644 index 0000000..71aa5c9 --- /dev/null +++ b/AtlagHom/AtlagHom.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {8D40BF01-637C-428A-B86D-805E42E109B4} + Exe + AtlagHom + AtlagHom + 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/AtlagHom/Program.cs b/AtlagHom/Program.cs new file mode 100644 index 0000000..c48c7c1 --- /dev/null +++ b/AtlagHom/Program.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AtlagHom { + internal class Program { + static void Main(string[] args) { + int[,] data = new int[12,30]; + Random random = new Random(); + + //random adatok + for (int i = 0; i < data.GetLength(0); i++) { + for (int j = 0; j < data.GetLength(1); j++) { + data[i, j] = random.Next(-10, 40); + Console.Write("{0} ",data[i,j]); + } + Console.WriteLine(); + } + Console.WriteLine(); + + int min = Int32.MaxValue; + int min_i = -1; + int min_j = -1; + int max = Int32.MinValue; + int max_i = -1; + int max_j = -1; + int honap_hom_sum = 0; + float[] honap_hom = new float[12]; + int index = -1; + bool day = false; + int day_count = 0; + + for (int i = 0; i < data.GetLength(0); i++) { + for (int j = 0; j < data.GetLength(1); j++) { + //min es max homerseklet keresese + if (data[i, j] < min) { + min = data[i, j]; + min_i = i; + min_j = j; + } + if(data[i, j] > max) { + max = data[i, j]; + max_i = i; + max_j = j; + } + //akt honap hom sum + honap_hom_sum += data[i, j]; + + //ot nap minusz + if (!day) { + if (data[i, j] < 0) { + day_count++; + } else { + day_count = 0; + } + if (day_count == 5) { + day = true; + } + } + } + //honapok atlag homerseklete + honap_hom[++index] = honap_hom_sum / 30; + honap_hom_sum = 0; //akt honap nullazasa + } + + //ot minusz egymas utan + if (day) { + Console.WriteLine("Volt egymas utan ot nap minusz fok"); + } else { + Console.WriteLine("Nem volt egymas utan ot nap minusz fok"); + } + + Console.WriteLine("Az ev legmelegebb napja: {0}, {1}", max_i, max_j); + Console.WriteLine("Az ev leghidegebb napja: {0}, {1}", min_i, min_j); + Console.WriteLine(); + + float min_honap = 100; + float max_honap = -100; + + for (int i = 0; i < honap_hom.Length; i++) { + Console.Write("{0} ",honap_hom[i]); + } + + //min es max honap atlag hom keresese + for (int i = 0; i < honap_hom.Length; i++) { + if(min_honap > honap_hom[i]) { + min_i = i; + min_honap = honap_hom[i]; + } + if(max_honap < honap_hom[i]) { + max_i = i; + max_honap = honap_hom[i]; + } + } + + Console.WriteLine("\nLegmelegebb honap: {0}", (max_i+1)); + Console.WriteLine("Leghidegebb honap: {0}", (min_i+1)); + + Console.ReadKey(); + } + } +} \ No newline at end of file diff --git a/AtlagHom/Properties/AssemblyInfo.cs b/AtlagHom/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0361155 --- /dev/null +++ b/AtlagHom/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("AtlagHom")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("AtlagHom")] +[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("8d40bf01-637c-428a-b86d-805e42e109b4")] + +// 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/AtlagHom/bin/Debug/AtlagHom.exe b/AtlagHom/bin/Debug/AtlagHom.exe new file mode 100644 index 0000000..08c7840 Binary files /dev/null and b/AtlagHom/bin/Debug/AtlagHom.exe differ diff --git a/AtlagHom/bin/Debug/AtlagHom.exe.config b/AtlagHom/bin/Debug/AtlagHom.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/AtlagHom/bin/Debug/AtlagHom.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/AtlagHom/bin/Debug/AtlagHom.pdb b/AtlagHom/bin/Debug/AtlagHom.pdb new file mode 100644 index 0000000..6972847 Binary files /dev/null and b/AtlagHom/bin/Debug/AtlagHom.pdb differ diff --git a/AtlagHom/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/AtlagHom/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/AtlagHom/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/AtlagHom/obj/Debug/AtlagHom.csproj.AssemblyReference.cache b/AtlagHom/obj/Debug/AtlagHom.csproj.AssemblyReference.cache new file mode 100644 index 0000000..204fdef Binary files /dev/null and b/AtlagHom/obj/Debug/AtlagHom.csproj.AssemblyReference.cache differ diff --git a/AtlagHom/obj/Debug/AtlagHom.csproj.CoreCompileInputs.cache b/AtlagHom/obj/Debug/AtlagHom.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/AtlagHom/obj/Debug/AtlagHom.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/AtlagHom/obj/Debug/AtlagHom.csproj.FileListAbsolute.txt b/AtlagHom/obj/Debug/AtlagHom.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..185e36f --- /dev/null +++ b/AtlagHom/obj/Debug/AtlagHom.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\AtlagHom\bin\Debug\AtlagHom.exe.config +C:\dev\c#\AtlagHom\bin\Debug\AtlagHom.exe +C:\dev\c#\AtlagHom\bin\Debug\AtlagHom.pdb +C:\dev\c#\AtlagHom\obj\Debug\AtlagHom.csproj.AssemblyReference.cache +C:\dev\c#\AtlagHom\obj\Debug\AtlagHom.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\AtlagHom\obj\Debug\AtlagHom.csproj.CoreCompileInputs.cache +C:\dev\c#\AtlagHom\obj\Debug\AtlagHom.exe +C:\dev\c#\AtlagHom\obj\Debug\AtlagHom.pdb diff --git a/AtlagHom/obj/Debug/AtlagHom.csproj.SuggestedBindingRedirects.cache b/AtlagHom/obj/Debug/AtlagHom.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/AtlagHom/obj/Debug/AtlagHom.exe b/AtlagHom/obj/Debug/AtlagHom.exe new file mode 100644 index 0000000..08c7840 Binary files /dev/null and b/AtlagHom/obj/Debug/AtlagHom.exe differ diff --git a/AtlagHom/obj/Debug/AtlagHom.pdb b/AtlagHom/obj/Debug/AtlagHom.pdb new file mode 100644 index 0000000..6972847 Binary files /dev/null and b/AtlagHom/obj/Debug/AtlagHom.pdb differ diff --git a/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..5af2d33 Binary files /dev/null and b/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/BuborekRendezes/App.config b/BuborekRendezes/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/BuborekRendezes/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/BuborekRendezes/BuborekRendezes.csproj b/BuborekRendezes/BuborekRendezes.csproj new file mode 100644 index 0000000..88f9d52 --- /dev/null +++ b/BuborekRendezes/BuborekRendezes.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {406A5BB9-3836-40AB-B742-5BBE18BAD1ED} + Exe + BuborekRendezes + BuborekRendezes + 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/BuborekRendezes/Program.cs b/BuborekRendezes/Program.cs new file mode 100644 index 0000000..2e02186 --- /dev/null +++ b/BuborekRendezes/Program.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BuborekRendezes { + internal class Program { + static void Main(string[] args) { + int[] array = new int[10]; + Random random = new Random(); + + //random elemekkel feltoltes + for (int i = 0; i < array.Length; i++) { + array[i] = random.Next(1, 100000); + } + + for (int i = 0; i < array.Length - 1; ++i) { + for (int j = array.Length - 1; j > i; --j) { + if (array[j - 1] > array[j]) { + int tmp = array[j]; + array[j] = array[j - 1]; + array[j - 1] = tmp; + } + } + } + + for (int i = 0; i < array.Length; i++) { + Console.WriteLine(array[i]); + } + + Console.ReadKey(); + } + } +} diff --git a/BuborekRendezes/Properties/AssemblyInfo.cs b/BuborekRendezes/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..fce7ad2 --- /dev/null +++ b/BuborekRendezes/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("BuborekRendezes")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("BuborekRendezes")] +[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("406a5bb9-3836-40ab-b742-5bbe18bad1ed")] + +// 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/BuborekRendezes/bin/Debug/BuborekRendezes.exe b/BuborekRendezes/bin/Debug/BuborekRendezes.exe new file mode 100644 index 0000000..eb370b6 Binary files /dev/null and b/BuborekRendezes/bin/Debug/BuborekRendezes.exe differ diff --git a/BuborekRendezes/bin/Debug/BuborekRendezes.exe.config b/BuborekRendezes/bin/Debug/BuborekRendezes.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/BuborekRendezes/bin/Debug/BuborekRendezes.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/BuborekRendezes/bin/Debug/BuborekRendezes.pdb b/BuborekRendezes/bin/Debug/BuborekRendezes.pdb new file mode 100644 index 0000000..40b67b6 Binary files /dev/null and b/BuborekRendezes/bin/Debug/BuborekRendezes.pdb differ diff --git a/BuborekRendezes/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/BuborekRendezes/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/BuborekRendezes/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/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.CoreCompileInputs.cache b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a89c9f6 --- /dev/null +++ b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +C:\dev\c#\BuborekRendezes\bin\Debug\BuborekRendezes.exe.config +C:\dev\c#\BuborekRendezes\bin\Debug\BuborekRendezes.exe +C:\dev\c#\BuborekRendezes\bin\Debug\BuborekRendezes.pdb +C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.CoreCompileInputs.cache +C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.exe +C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.pdb diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.SuggestedBindingRedirects.cache b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.exe b/BuborekRendezes/obj/Debug/BuborekRendezes.exe new file mode 100644 index 0000000..eb370b6 Binary files /dev/null and b/BuborekRendezes/obj/Debug/BuborekRendezes.exe differ diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.pdb b/BuborekRendezes/obj/Debug/BuborekRendezes.pdb new file mode 100644 index 0000000..40b67b6 Binary files /dev/null and b/BuborekRendezes/obj/Debug/BuborekRendezes.pdb differ diff --git a/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..a3ed0df Binary files /dev/null and b/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MinMax/Program.cs b/MinMax/Program.cs index ca077df..7640394 100644 --- a/MinMax/Program.cs +++ b/MinMax/Program.cs @@ -9,7 +9,7 @@ namespace MinMax { static void Main(string[] args) { Random random = new Random(); - int[] arr = new int[1000]; + int[] arr = new int[Int32.MaxValue/8]; //random elemek hozzaadasa a tombhoz for (int i = 0; i < arr.Length; i++) { @@ -24,15 +24,22 @@ namespace MinMax { int min = Int32.MaxValue; int min_i = -1; + int max = Int32.MinValue; + int max_i = -1; for (int i = 0; i < arr.Length; i++) { if(min > arr[i]) { min = arr[i]; min_i = i; } + if (max < arr[i]) { + max = arr[i]; + max_i = i; + } } - + Console.WriteLine("Min ertek: {0}, helye: {1}",min,min_i); + Console.WriteLine("Max ertek: {0}, helye: {1}", max, max_i); Console.ReadKey(); } diff --git a/MinMax/bin/Debug/MinMax.exe b/MinMax/bin/Debug/MinMax.exe index bc01362..8485041 100644 Binary files a/MinMax/bin/Debug/MinMax.exe and b/MinMax/bin/Debug/MinMax.exe differ diff --git a/MinMax/bin/Debug/MinMax.pdb b/MinMax/bin/Debug/MinMax.pdb index 0cea279..a585987 100644 Binary files a/MinMax/bin/Debug/MinMax.pdb and b/MinMax/bin/Debug/MinMax.pdb differ diff --git a/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index d8bfd7e..bdc5b3f 100644 Binary files a/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache 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 index f5e894a..ce6c4ca 100644 Binary files a/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache and b/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache differ diff --git a/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt b/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt index e703e4d..5932310 100644 --- a/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt +++ b/MinMax/obj/Debug/MinMax.csproj.FileListAbsolute.txt @@ -5,3 +5,11 @@ 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 +C:\dev\c#\MinMax\bin\Debug\MinMax.exe.config +C:\dev\c#\MinMax\bin\Debug\MinMax.exe +C:\dev\c#\MinMax\bin\Debug\MinMax.pdb +C:\dev\c#\MinMax\obj\Debug\MinMax.csproj.AssemblyReference.cache +C:\dev\c#\MinMax\obj\Debug\MinMax.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\MinMax\obj\Debug\MinMax.csproj.CoreCompileInputs.cache +C:\dev\c#\MinMax\obj\Debug\MinMax.exe +C:\dev\c#\MinMax\obj\Debug\MinMax.pdb diff --git a/MinMax/obj/Debug/MinMax.csproj.SuggestedBindingRedirects.cache b/MinMax/obj/Debug/MinMax.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/MinMax/obj/Debug/MinMax.exe b/MinMax/obj/Debug/MinMax.exe index bc01362..8485041 100644 Binary files a/MinMax/obj/Debug/MinMax.exe and b/MinMax/obj/Debug/MinMax.exe differ diff --git a/MinMax/obj/Debug/MinMax.pdb b/MinMax/obj/Debug/MinMax.pdb index 0cea279..a585987 100644 Binary files a/MinMax/obj/Debug/MinMax.pdb and b/MinMax/obj/Debug/MinMax.pdb differ diff --git a/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 529f191..85ce0f8 100644 Binary files a/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache index 0da8ef2..58cdbeb 100644 Binary files a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache and b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache differ diff --git a/Szigetek/App.config b/Szigetek/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Szigetek/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Szigetek/Program.cs b/Szigetek/Program.cs new file mode 100644 index 0000000..9f8116f --- /dev/null +++ b/Szigetek/Program.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Szigetek { + internal class Program { + static void Main(string[] args) { + int sziget_sorozat = 0; + int sziget_sorozat_max = 0; + int sziget_sum = 0; + int hely = -1; + string folytatas = "igen"; + bool sorozat = false; + + while (folytatas == "igen") { + Console.WriteLine("Sziget 1 | Tenger 0"); + hely = Convert.ToInt32(Console.ReadLine()); + + if (hely == 1) { + sziget_sum++; + sorozat = true; + if (sorozat) { + sziget_sorozat++; + } + } else { + sorozat = false; + sziget_sorozat_max = sziget_sorozat; + sziget_sorozat = 0; + } + + Console.WriteLine("Akarsz meg megadni adatot? (igen/nem)"); + folytatas = Console.ReadLine(); + + if(folytatas != "igen") { + if (sziget_sorozat_max < sziget_sorozat) { + sziget_sorozat_max = sziget_sorozat; + + } + } + } + + Console.WriteLine("Szigetek szama: {0}", sziget_sum); + Console.WriteLine("Legtobb osszefuggo szigetek szama: {0}", sziget_sorozat_max); + Console.ReadKey(); + } + } +} diff --git a/Szigetek/Properties/AssemblyInfo.cs b/Szigetek/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..02d0a6c --- /dev/null +++ b/Szigetek/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("Szigetek")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Szigetek")] +[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("81ea1bcf-48a1-4c1b-b6a9-23d49dc2e820")] + +// 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/Szigetek/Szigetek.csproj b/Szigetek/Szigetek.csproj new file mode 100644 index 0000000..47169cf --- /dev/null +++ b/Szigetek/Szigetek.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820} + Exe + Szigetek + Szigetek + 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/Szigetek/bin/Debug/Szigetek.exe b/Szigetek/bin/Debug/Szigetek.exe new file mode 100644 index 0000000..8f68001 Binary files /dev/null and b/Szigetek/bin/Debug/Szigetek.exe differ diff --git a/Szigetek/bin/Debug/Szigetek.exe.config b/Szigetek/bin/Debug/Szigetek.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Szigetek/bin/Debug/Szigetek.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Szigetek/bin/Debug/Szigetek.pdb b/Szigetek/bin/Debug/Szigetek.pdb new file mode 100644 index 0000000..9f8812e Binary files /dev/null and b/Szigetek/bin/Debug/Szigetek.pdb differ diff --git a/Szigetek/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/Szigetek/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/Szigetek/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/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..1f15f9a Binary files /dev/null and b/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Szigetek/obj/Debug/Szigetek.csproj.AssemblyReference.cache b/Szigetek/obj/Debug/Szigetek.csproj.AssemblyReference.cache new file mode 100644 index 0000000..204fdef Binary files /dev/null and b/Szigetek/obj/Debug/Szigetek.csproj.AssemblyReference.cache differ diff --git a/Szigetek/obj/Debug/Szigetek.csproj.CoreCompileInputs.cache b/Szigetek/obj/Debug/Szigetek.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/Szigetek/obj/Debug/Szigetek.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/Szigetek/obj/Debug/Szigetek.csproj.FileListAbsolute.txt b/Szigetek/obj/Debug/Szigetek.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..68009cb --- /dev/null +++ b/Szigetek/obj/Debug/Szigetek.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\Szigetek\bin\Debug\Szigetek.exe.config +C:\dev\c#\Szigetek\bin\Debug\Szigetek.exe +C:\dev\c#\Szigetek\bin\Debug\Szigetek.pdb +C:\dev\c#\Szigetek\obj\Debug\Szigetek.csproj.AssemblyReference.cache +C:\dev\c#\Szigetek\obj\Debug\Szigetek.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\Szigetek\obj\Debug\Szigetek.csproj.CoreCompileInputs.cache +C:\dev\c#\Szigetek\obj\Debug\Szigetek.exe +C:\dev\c#\Szigetek\obj\Debug\Szigetek.pdb diff --git a/Szigetek/obj/Debug/Szigetek.csproj.SuggestedBindingRedirects.cache b/Szigetek/obj/Debug/Szigetek.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/Szigetek/obj/Debug/Szigetek.exe b/Szigetek/obj/Debug/Szigetek.exe new file mode 100644 index 0000000..8f68001 Binary files /dev/null and b/Szigetek/obj/Debug/Szigetek.exe differ diff --git a/Szigetek/obj/Debug/Szigetek.pdb b/Szigetek/obj/Debug/Szigetek.pdb new file mode 100644 index 0000000..9f8812e Binary files /dev/null and b/Szigetek/obj/Debug/Szigetek.pdb differ diff --git a/c-sharp.sln b/c-sharp.sln index d778c71..95b46be 100644 --- a/c-sharp.sln +++ b/c-sharp.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.32106.194 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32126.317 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "c-sharp", "c-sharp\c-sharp.csproj", "{A6876A09-53D2-47AF-A648-81BAD791D19D}" EndProject @@ -9,6 +9,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Szamkitalalo", "Szamkitalal EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinMax", "MinMax\MinMax.csproj", "{8812376D-8182-4569-972D-A83C8239CA36}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Szigetek", "Szigetek\Szigetek.csproj", "{81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AtlagHom", "AtlagHom\AtlagHom.csproj", "{8D40BF01-637C-428A-B86D-805E42E109B4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuborekRendezes", "BuborekRendezes\BuborekRendezes.csproj", "{406A5BB9-3836-40AB-B742-5BBE18BAD1ED}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -27,6 +33,18 @@ Global {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 + {81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820}.Debug|Any CPU.Build.0 = Debug|Any CPU + {81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820}.Release|Any CPU.ActiveCfg = Release|Any CPU + {81EA1BCF-48A1-4C1B-B6A9-23D49DC2E820}.Release|Any CPU.Build.0 = Release|Any CPU + {8D40BF01-637C-428A-B86D-805E42E109B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8D40BF01-637C-428A-B86D-805E42E109B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8D40BF01-637C-428A-B86D-805E42E109B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8D40BF01-637C-428A-B86D-805E42E109B4}.Release|Any CPU.Build.0 = Release|Any CPU + {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Debug|Any CPU.Build.0 = Debug|Any CPU + {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Release|Any CPU.ActiveCfg = Release|Any CPU + {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 2a7adbf..5a61f3e 100644 Binary files a/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache b/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache new file mode 100644 index 0000000..58cdbeb Binary files /dev/null and b/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache differ