This commit is contained in:
2022-05-18 20:09:59 +02:00
parent c77bc8e0d8
commit bc5fba8a18
139 changed files with 1000336 additions and 21 deletions

View File

Binary file not shown.

View File

@@ -1103,7 +1103,7 @@ namespace AutoLista {
} }
public void fajlIras() { public void fajlIras() {
for (int i = 0; i < 10000000; i++) { for (int i = 0; i < 100000; i++) {
if (i % 100000 == 0) { Console.WriteLine("Sor letrehozva: " + i); } if (i % 100000 == 0) { Console.WriteLine("Sor letrehozva: " + i); }
writer.WriteLine(rendszamGen()+ "," + tipus() + "," + RandomDay().ToShortDateString()+ "," + random.Next(0,6)+ "," + nevek[random.Next(0,1000)]); writer.WriteLine(rendszamGen()+ "," + tipus() + "," + RandomDay().ToShortDateString()+ "," + random.Next(0,6)+ "," + nevek[random.Next(0,1000)]);
} }

View File

@@ -4,15 +4,10 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.IO; using System.IO;
using System.Windows.Input;
namespace AutoLista { namespace AutoLista {
internal class Program { internal class Program {
static void Main(string[] args) { static void Main(string[] args) {
Keyboard keyboard = new Keyboard();
//lista letrehozas //lista letrehozas
ListaGen lista = new ListaGen(); ListaGen lista = new ListaGen();
lista.fajlIras(); lista.fajlIras();
@@ -30,7 +25,7 @@ namespace AutoLista {
} }
for (int i = 0; i < autok.Count; i++) { for (int i = 0; i < autok.Count; i++) {
//if (i % 100000 == 0) if (i % 100000 == 0)
autok[i].kiir(); autok[i].kiir();
} }

Binary file not shown.

Binary file not shown.

View File

@@ -6,3 +6,11 @@ C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.csproj.SuggestedBindingRedirects
C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.csproj.CoreCompileInputs.cache C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.exe C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.exe
C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.pdb C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.pdb
C:\dev\c#\AutoLista\bin\Debug\AutoLista.exe.config
C:\dev\c#\AutoLista\bin\Debug\AutoLista.exe
C:\dev\c#\AutoLista\bin\Debug\AutoLista.pdb
C:\dev\c#\AutoLista\obj\Debug\AutoLista.csproj.AssemblyReference.cache
C:\dev\c#\AutoLista\obj\Debug\AutoLista.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\AutoLista\obj\Debug\AutoLista.csproj.CoreCompileInputs.cache
C:\dev\c#\AutoLista\obj\Debug\AutoLista.exe
C:\dev\c#\AutoLista\obj\Debug\AutoLista.pdb

Binary file not shown.

Binary file not shown.

View File

@@ -16,7 +16,7 @@ namespace BaratFajl {
return start.AddDays(gen.Next(range)); return start.AddDays(gen.Next(range));
} }
static void Main(string[] args) { public static void Main() {
Stopwatch stopwatch = Stopwatch.StartNew(); Stopwatch stopwatch = Stopwatch.StartNew();
stopwatch.Start(); stopwatch.Start();
string[] nevek = { string[] nevek = {
@@ -1024,8 +1024,8 @@ namespace BaratFajl {
StreamWriter writer = new StreamWriter(@"baratok.txt", false, Encoding.Default); StreamWriter writer = new StreamWriter(@"baratok.txt", false, Encoding.Default);
for (int i = 0; i < 10000000; i++) { for (int i = 0; i < 1000000; i++) {
if (i % 100000 == 0) Console.WriteLine(i); if (i % 100000 == 0) Console.WriteLine(i + " kiirva");
int nev_random = gen.Next(0, 1000); int nev_random = gen.Next(0, 1000);
int bulizasi_hajlam = gen.Next(1, 101); int bulizasi_hajlam = gen.Next(1, 101);
writer.WriteLine(nevek[nev_random] + "," + RandomDay().ToShortDateString() + "," + "n," + bulizasi_hajlam); writer.WriteLine(nevek[nev_random] + "," + RandomDay().ToShortDateString() + "," + "n," + bulizasi_hajlam);
@@ -1034,9 +1034,6 @@ namespace BaratFajl {
stopwatch.Stop(); stopwatch.Stop();
Console.WriteLine("Time:" + stopwatch.Elapsed); Console.WriteLine("Time:" + stopwatch.Elapsed);
Console.ReadKey();
} }
} }
} }

Binary file not shown.

Binary file not shown.

View File

@@ -6,3 +6,11 @@ C:\dev\c#\c-sharp\BaratFajl\bin\Debug\BaratFajl.exe
C:\dev\c#\c-sharp\BaratFajl\bin\Debug\BaratFajl.pdb C:\dev\c#\c-sharp\BaratFajl\bin\Debug\BaratFajl.pdb
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.exe C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.exe
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.pdb C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.pdb
C:\dev\c#\BaratFajl\bin\Debug\BaratFajl.exe.config
C:\dev\c#\BaratFajl\bin\Debug\BaratFajl.exe
C:\dev\c#\BaratFajl\bin\Debug\BaratFajl.pdb
C:\dev\c#\BaratFajl\obj\Debug\BaratFajl.csproj.AssemblyReference.cache
C:\dev\c#\BaratFajl\obj\Debug\BaratFajl.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\BaratFajl\obj\Debug\BaratFajl.csproj.CoreCompileInputs.cache
C:\dev\c#\BaratFajl\obj\Debug\BaratFajl.exe
C:\dev\c#\BaratFajl\obj\Debug\BaratFajl.pdb

Binary file not shown.

Binary file not shown.

View File

@@ -20,7 +20,7 @@ namespace BaratLista {
public void kiir() { public void kiir() {
string ido = szuletes_ido.ToShortDateString(); string ido = szuletes_ido.ToShortDateString();
Console.WriteLine("Név: " + nev + " Születési idő: " + ido + " Nem: " + nem + " Bulizasi szam: " + bulizasi_szam); Console.WriteLine("Név: " + nev + "\tSzületési idő: " + ido + "\tNem: " + nem + "\tBulizasi szam: " + bulizasi_szam);
} }
} }
} }

View File

@@ -50,5 +50,11 @@
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BaratFajl\BaratFajl.csproj">
<Project>{cc20af08-824e-441a-8c98-3e268919b749}</Project>
<Name>BaratFajl</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@@ -7,18 +7,15 @@ using System.IO;
namespace BaratLista { namespace BaratLista {
public class Program { public class Program {
public static void beolvas() {
}
static void Main(string[] args) { static void Main(string[] args) {
BaratFajl.Program.Main();
List<Barat> baratok = new List<Barat>(); List<Barat> baratok = new List<Barat>();
StreamReader reader = new StreamReader("baratok.txt", Encoding.Default); StreamReader reader = new StreamReader("baratok.txt", Encoding.Default);
int c = 0; int c = 0;
while(!reader.EndOfStream) { while(!reader.EndOfStream) {
if (c % 100000 == 0) Console.WriteLine(c); if (c % 100000 == 0) Console.WriteLine(c + " beolvasva");
c++; c++;
string input = reader.ReadLine(); string input = reader.ReadLine();
string[] adatok = input.Split(','); string[] adatok = input.Split(',');

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

1000000
BaratLista/bin/Debug/baratok.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1 @@
a5b3f47cec925340e73685ba7ab5f8722211baf1 f7a94ccdee24e0c21663094986c63ce7832ac100

View File

@@ -6,3 +6,15 @@ C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.csproj.SuggestedBindingRedirec
C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.csproj.CoreCompileInputs.cache C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.exe C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.exe
C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.pdb C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.pdb
C:\dev\c#\BaratLista\bin\Debug\BaratLista.exe.config
C:\dev\c#\BaratLista\bin\Debug\BaratLista.exe
C:\dev\c#\BaratLista\bin\Debug\BaratLista.pdb
C:\dev\c#\BaratLista\bin\Debug\BaratFajl.exe
C:\dev\c#\BaratLista\bin\Debug\BaratFajl.pdb
C:\dev\c#\BaratLista\bin\Debug\BaratFajl.exe.config
C:\dev\c#\BaratLista\obj\Debug\BaratLista.csproj.AssemblyReference.cache
C:\dev\c#\BaratLista\obj\Debug\BaratLista.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\BaratLista\obj\Debug\BaratLista.csproj.CoreCompileInputs.cache
C:\dev\c#\BaratLista\obj\Debug\BaratLista.csproj.CopyComplete
C:\dev\c#\BaratLista\obj\Debug\BaratLista.exe
C:\dev\c#\BaratLista\obj\Debug\BaratLista.pdb

Binary file not shown.

Binary file not shown.

6
Dinnye/App.config Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

53
Dinnye/Dinnye.csproj Normal file
View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F4E4CD61-49E6-4A03-9C5E-BCA7D47772DB}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Dinnye</RootNamespace>
<AssemblyName>Dinnye</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

21
Dinnye/Program.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dinnye {
internal class Program {
static void Main(string[] args) {
Console.WriteLine("Adja meg az atmerot");
double atmero = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Adja meg a dinnyek szamat");
int num = Convert.ToInt32(Console.ReadLine());
double eredmeny = ((Math.PI * atmero) * 2 + 60) * num / 100.0; //meterbe konvertalva
Console.WriteLine(eredmeny + " méter szalag kell");
Console.ReadKey();
}
}
}

View File

@@ -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("Dinnye")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Dinnye")]
[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("f4e4cd61-49e6-4a03-9c5e-bca7d47772db")]
// 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")]

BIN
Dinnye/bin/Debug/Dinnye.exe Normal file

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

BIN
Dinnye/bin/Debug/Dinnye.pdb Normal file

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

Binary file not shown.

View File

@@ -0,0 +1 @@
2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a

View File

@@ -0,0 +1,8 @@
C:\dev\c#\Dinnye\bin\Debug\Dinnye.exe.config
C:\dev\c#\Dinnye\bin\Debug\Dinnye.exe
C:\dev\c#\Dinnye\bin\Debug\Dinnye.pdb
C:\dev\c#\Dinnye\obj\Debug\Dinnye.csproj.AssemblyReference.cache
C:\dev\c#\Dinnye\obj\Debug\Dinnye.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\Dinnye\obj\Debug\Dinnye.csproj.CoreCompileInputs.cache
C:\dev\c#\Dinnye\obj\Debug\Dinnye.exe
C:\dev\c#\Dinnye\obj\Debug\Dinnye.pdb

BIN
Dinnye/obj/Debug/Dinnye.exe Normal file

Binary file not shown.

BIN
Dinnye/obj/Debug/Dinnye.pdb Normal file

Binary file not shown.

6
KeyTesting/App.config Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DCC3B9CC-9E53-46FB-841C-47B04A717E49}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>KeyTesting</RootNamespace>
<AssemblyName>KeyTesting</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

17
KeyTesting/Program.cs Normal file
View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KeyTesting {
internal class Program {
static void Main(string[] args) {
while (true) {
Console.WriteLine("new key");
ConsoleKeyInfo key = Console.ReadKey();
Console.WriteLine("\n"+key.Key);
}
}
}
}

View File

@@ -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("KeyTesting")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("KeyTesting")]
[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("dcc3b9cc-9e53-46fb-841c-47b04a717e49")]
// 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")]

Binary file not shown.

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1 @@
2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a

View File

@@ -0,0 +1,8 @@
C:\dev\c#\KeyTesting\bin\Debug\KeyTesting.exe.config
C:\dev\c#\KeyTesting\bin\Debug\KeyTesting.exe
C:\dev\c#\KeyTesting\bin\Debug\KeyTesting.pdb
C:\dev\c#\KeyTesting\obj\Debug\KeyTesting.csproj.AssemblyReference.cache
C:\dev\c#\KeyTesting\obj\Debug\KeyTesting.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\KeyTesting\obj\Debug\KeyTesting.csproj.CoreCompileInputs.cache
C:\dev\c#\KeyTesting\obj\Debug\KeyTesting.exe
C:\dev\c#\KeyTesting\obj\Debug\KeyTesting.pdb

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More