diff --git a/Fibonacci/Program.cs b/Fibonacci/Program.cs index 62ae86b..1e01321 100644 --- a/Fibonacci/Program.cs +++ b/Fibonacci/Program.cs @@ -6,13 +6,13 @@ using System.Threading.Tasks; namespace Fibonacci { internal class Program { - public static ulong fibonacci(int darab) { + /*public static ulong fibonacci(int darab) { if ((darab == 0) || (darab == 1)) { return Convert.ToUInt64(darab); } else { return fibonacci(darab - 1) + fibonacci(darab - 2); } - } + }*/ static void Main(string[] args) { Console.WriteLine("Adja meg hány számot akar látni"); diff --git a/c-sharp.sln b/c-sharp.sln index ec565a3..2325419 100644 --- a/c-sharp.sln +++ b/c-sharp.sln @@ -61,6 +61,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Negyszog", "Negyszog\Negysz EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NegyszogUnitTest", "NegyszogUnitTest\NegyszogUnitTest.csproj", "{2933E8F3-3C69-4429-AC6A-7875DB77DAD6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csv", "csv\csv.csproj", "{D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -269,6 +271,7 @@ Global {F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|Any CPU.Build.0 = Release|Any CPU {F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.ActiveCfg = Release|Any CPU {F2CDBA8F-B782-4B1C-A5E6-0EBE9F1AE3C2}.Release|x64.Build.0 = Release|Any CPU +<<<<<<< HEAD {95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {95611FCF-2765-4679-86FA-1212921A0D06}.Debug|Any CPU.Build.0 = Debug|Any CPU {95611FCF-2765-4679-86FA-1212921A0D06}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -301,6 +304,20 @@ Global {2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|Any CPU.Build.0 = Release|Any CPU {2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.ActiveCfg = Release|Any CPU {2933E8F3-3C69-4429-AC6A-7875DB77DAD6}.Release|x64.Build.0 = Release|Any CPU +======= +<<<<<<< HEAD + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|x64.ActiveCfg = Debug|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Debug|x64.Build.0 = Debug|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|Any CPU.Build.0 = Release|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|x64.ActiveCfg = Release|Any CPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B}.Release|x64.Build.0 = Release|Any CPU +======= +>>>>>>> cbdc00b78c8377e68a29aab9c4aa4ff6d7ffe5e0 +>>>>>>> 101aa2fb434556debb8939ef883c8221e1e332b8 +>>>>>>> aa7898d30284c6d163ff6cc64f11ed8f53e33cae EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/csv/App.config b/csv/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/csv/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/csv/Program.cs b/csv/Program.cs new file mode 100644 index 0000000..e68bd13 --- /dev/null +++ b/csv/Program.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; +using System.Diagnostics; + +namespace csv { + internal class Program { + static void Main(string[] args) { + StreamWriter writer = new StreamWriter(@"adatok.csv", false, Encoding.Default); + Random random = new Random(); + Stopwatch stopwatch = new Stopwatch(); + + stopwatch.Start(); + + for (long i = 0; i < 10000000; i++) { + for (long j = 0; j < 5; j++) { + writer.Write(random.Next(-100000, 100000) + ";"); + } + if (i % 1000000 == 0) { Console.WriteLine(i); } + writer.WriteLine(); + } + + stopwatch.Stop(); + + writer.Close(); + Console.WriteLine("kiiras kesz"); + Console.WriteLine("Eltelt ido: " + stopwatch.Elapsed); + Console.ReadKey(); + + } + } +} diff --git a/csv/Properties/AssemblyInfo.cs b/csv/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..07feae5 --- /dev/null +++ b/csv/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("csv")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("csv")] +[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("d8c331c6-6363-4c0b-91aa-71cc8a27ee6b")] + +// 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/csv/bin/Debug/csv.exe b/csv/bin/Debug/csv.exe new file mode 100644 index 0000000..79b2842 Binary files /dev/null and b/csv/bin/Debug/csv.exe differ diff --git a/csv/bin/Debug/csv.exe.config b/csv/bin/Debug/csv.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/csv/bin/Debug/csv.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/csv/bin/Debug/csv.pdb b/csv/bin/Debug/csv.pdb new file mode 100644 index 0000000..f17583a Binary files /dev/null and b/csv/bin/Debug/csv.pdb differ diff --git a/csv/bin/Release/csv.exe b/csv/bin/Release/csv.exe new file mode 100644 index 0000000..cb79912 Binary files /dev/null and b/csv/bin/Release/csv.exe differ diff --git a/csv/bin/Release/csv.exe.config b/csv/bin/Release/csv.exe.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/csv/bin/Release/csv.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/csv/bin/Release/csv.pdb b/csv/bin/Release/csv.pdb new file mode 100644 index 0000000..124b8e0 Binary files /dev/null and b/csv/bin/Release/csv.pdb differ diff --git a/csv/csv.csproj b/csv/csv.csproj new file mode 100644 index 0000000..994fb8a --- /dev/null +++ b/csv/csv.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {D8C331C6-6363-4C0B-91AA-71CC8A27EE6B} + Exe + csv + csv + v4.8 + 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/csv/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/csv/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/csv/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/csv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/csv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4e47157 Binary files /dev/null and b/csv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/csv/obj/Debug/csv.csproj.AssemblyReference.cache b/csv/obj/Debug/csv.csproj.AssemblyReference.cache new file mode 100644 index 0000000..a93305f Binary files /dev/null and b/csv/obj/Debug/csv.csproj.AssemblyReference.cache differ diff --git a/csv/obj/Debug/csv.csproj.CoreCompileInputs.cache b/csv/obj/Debug/csv.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..0c63285 --- /dev/null +++ b/csv/obj/Debug/csv.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a diff --git a/csv/obj/Debug/csv.csproj.FileListAbsolute.txt b/csv/obj/Debug/csv.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f87b0f0 --- /dev/null +++ b/csv/obj/Debug/csv.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\csv\bin\Debug\csv.exe.config +C:\dev\c#\csv\bin\Debug\csv.exe +C:\dev\c#\csv\bin\Debug\csv.pdb +C:\dev\c#\csv\obj\Debug\csv.csproj.AssemblyReference.cache +C:\dev\c#\csv\obj\Debug\csv.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\csv\obj\Debug\csv.csproj.CoreCompileInputs.cache +C:\dev\c#\csv\obj\Debug\csv.exe +C:\dev\c#\csv\obj\Debug\csv.pdb diff --git a/csv/obj/Debug/csv.csproj.SuggestedBindingRedirects.cache b/csv/obj/Debug/csv.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/csv/obj/Debug/csv.exe b/csv/obj/Debug/csv.exe new file mode 100644 index 0000000..79b2842 Binary files /dev/null and b/csv/obj/Debug/csv.exe differ diff --git a/csv/obj/Debug/csv.pdb b/csv/obj/Debug/csv.pdb new file mode 100644 index 0000000..f17583a Binary files /dev/null and b/csv/obj/Debug/csv.pdb differ diff --git a/csv/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/csv/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/csv/obj/Release/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/csv/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/csv/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..6453904 Binary files /dev/null and b/csv/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/csv/obj/Release/csv.csproj.AssemblyReference.cache b/csv/obj/Release/csv.csproj.AssemblyReference.cache new file mode 100644 index 0000000..a93305f Binary files /dev/null and b/csv/obj/Release/csv.csproj.AssemblyReference.cache differ diff --git a/csv/obj/Release/csv.csproj.CoreCompileInputs.cache b/csv/obj/Release/csv.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..958ac1b --- /dev/null +++ b/csv/obj/Release/csv.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +b1cac3c5db117414049b7ee1b7ead321fc446162 diff --git a/csv/obj/Release/csv.csproj.FileListAbsolute.txt b/csv/obj/Release/csv.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c2c1662 --- /dev/null +++ b/csv/obj/Release/csv.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\csv\bin\Release\csv.exe.config +C:\dev\c#\csv\bin\Release\csv.exe +C:\dev\c#\csv\bin\Release\csv.pdb +C:\dev\c#\csv\obj\Release\csv.csproj.AssemblyReference.cache +C:\dev\c#\csv\obj\Release\csv.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\csv\obj\Release\csv.csproj.CoreCompileInputs.cache +C:\dev\c#\csv\obj\Release\csv.exe +C:\dev\c#\csv\obj\Release\csv.pdb diff --git a/csv/obj/Release/csv.csproj.SuggestedBindingRedirects.cache b/csv/obj/Release/csv.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/csv/obj/Release/csv.exe b/csv/obj/Release/csv.exe new file mode 100644 index 0000000..cb79912 Binary files /dev/null and b/csv/obj/Release/csv.exe differ diff --git a/csv/obj/Release/csv.pdb b/csv/obj/Release/csv.pdb new file mode 100644 index 0000000..124b8e0 Binary files /dev/null and b/csv/obj/Release/csv.pdb differ