auto lista
This commit is contained in:
Binary file not shown.
Binary file not shown.
6
AutoLista/App.config
Normal file
6
AutoLista/App.config
Normal 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>
|
||||||
28
AutoLista/Auto.cs
Normal file
28
AutoLista/Auto.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace AutoLista {
|
||||||
|
public class Auto {
|
||||||
|
private string rendszam;
|
||||||
|
private string tipus;
|
||||||
|
private DateTime gyartas;
|
||||||
|
private int muszaki;
|
||||||
|
private string tulajdonos;
|
||||||
|
|
||||||
|
public Auto(string rendszam, string tipus, DateTime gyartas, int muszaki, string tulajdonos) {
|
||||||
|
this.rendszam = rendszam;
|
||||||
|
this.tipus = tipus;
|
||||||
|
this.gyartas = gyartas;
|
||||||
|
this.muszaki = muszaki;
|
||||||
|
this.tulajdonos = tulajdonos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void kiir() {
|
||||||
|
//rendszam, tipus, gyartas, muszaki, tulaj
|
||||||
|
Console.WriteLine("Rendszam: " + rendszam + " Tipus: "+tipus + " Gyartasi ev: "+gyartas.ToShortDateString() + " Muszaki: " + muszaki + " Tulajdonos: " + tulajdonos);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
AutoLista/AutoLista.csproj
Normal file
55
AutoLista/AutoLista.csproj
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
<?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>{1AD59409-0F91-46A7-A35A-1B13487FFA58}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>AutoLista</RootNamespace>
|
||||||
|
<AssemblyName>AutoLista</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="Auto.cs" />
|
||||||
|
<Compile Include="ListaGen.cs" />
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
1114
AutoLista/ListaGen.cs
Normal file
1114
AutoLista/ListaGen.cs
Normal file
File diff suppressed because it is too large
Load Diff
40
AutoLista/Program.cs
Normal file
40
AutoLista/Program.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.IO;
|
||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
namespace AutoLista {
|
||||||
|
internal class Program {
|
||||||
|
static void Main(string[] args) {
|
||||||
|
Keyboard keyboard = new Keyboard();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//lista letrehozas
|
||||||
|
ListaGen lista = new ListaGen();
|
||||||
|
lista.fajlIras();
|
||||||
|
|
||||||
|
List<Auto> autok = new List<Auto>();
|
||||||
|
|
||||||
|
StreamReader reader = new StreamReader(@"autok.txt", Encoding.Default);
|
||||||
|
int c = 0;
|
||||||
|
while (!reader.EndOfStream) {
|
||||||
|
if (c % 100000 == 0) Console.WriteLine(c + " beolvasva");
|
||||||
|
c++;
|
||||||
|
string input = reader.ReadLine();
|
||||||
|
string[] adatok = input.Split(',');
|
||||||
|
autok.Add(new Auto(adatok[0], adatok[1], DateTime.Parse(adatok[2]), Convert.ToInt32(adatok[3]), adatok[4]));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < autok.Count; i++) {
|
||||||
|
//if (i % 100000 == 0)
|
||||||
|
autok[i].kiir();
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
AutoLista/Properties/AssemblyInfo.cs
Normal file
36
AutoLista/Properties/AssemblyInfo.cs
Normal 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("AutoLista")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("AutoLista")]
|
||||||
|
[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("1ad59409-0f91-46a7-a35a-1b13487ffa58")]
|
||||||
|
|
||||||
|
// 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
AutoLista/bin/Debug/AutoLista.exe
Normal file
BIN
AutoLista/bin/Debug/AutoLista.exe
Normal file
Binary file not shown.
6
AutoLista/bin/Debug/AutoLista.exe.config
Normal file
6
AutoLista/bin/Debug/AutoLista.exe.config
Normal 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
AutoLista/bin/Debug/AutoLista.pdb
Normal file
BIN
AutoLista/bin/Debug/AutoLista.pdb
Normal file
Binary file not shown.
@@ -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")]
|
||||||
BIN
AutoLista/obj/Debug/AutoLista.csproj.AssemblyReference.cache
Normal file
BIN
AutoLista/obj/Debug/AutoLista.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
e7d25a20464e507bab0c54b30f4a7dfdaffb2962
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
C:\dev\c#\c-sharp\AutoLista\bin\Debug\AutoLista.exe.config
|
||||||
|
C:\dev\c#\c-sharp\AutoLista\bin\Debug\AutoLista.exe
|
||||||
|
C:\dev\c#\c-sharp\AutoLista\bin\Debug\AutoLista.pdb
|
||||||
|
C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.csproj.AssemblyReference.cache
|
||||||
|
C:\dev\c#\c-sharp\AutoLista\obj\Debug\AutoLista.csproj.SuggestedBindingRedirects.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.pdb
|
||||||
BIN
AutoLista/obj/Debug/AutoLista.exe
Normal file
BIN
AutoLista/obj/Debug/AutoLista.exe
Normal file
Binary file not shown.
BIN
AutoLista/obj/Debug/AutoLista.pdb
Normal file
BIN
AutoLista/obj/Debug/AutoLista.pdb
Normal file
Binary file not shown.
Binary file not shown.
6
BaratFajl/App.config
Normal file
6
BaratFajl/App.config
Normal 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
BaratFajl/BaratFajl.csproj
Normal file
53
BaratFajl/BaratFajl.csproj
Normal 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>{CC20AF08-824E-441A-8C98-3E268919B749}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>BaratFajl</RootNamespace>
|
||||||
|
<AssemblyName>BaratFajl</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>
|
||||||
1042
BaratFajl/Program.cs
Normal file
1042
BaratFajl/Program.cs
Normal file
File diff suppressed because it is too large
Load Diff
36
BaratFajl/Properties/AssemblyInfo.cs
Normal file
36
BaratFajl/Properties/AssemblyInfo.cs
Normal 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("BaratFajl")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("BaratFajl")]
|
||||||
|
[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("cc20af08-824e-441a-8c98-3e268919b749")]
|
||||||
|
|
||||||
|
// 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
BaratFajl/bin/Debug/BaratFajl.exe
Normal file
BIN
BaratFajl/bin/Debug/BaratFajl.exe
Normal file
Binary file not shown.
6
BaratFajl/bin/Debug/BaratFajl.exe.config
Normal file
6
BaratFajl/bin/Debug/BaratFajl.exe.config
Normal 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
BaratFajl/bin/Debug/BaratFajl.pdb
Normal file
BIN
BaratFajl/bin/Debug/BaratFajl.pdb
Normal file
Binary file not shown.
@@ -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")]
|
||||||
BIN
BaratFajl/obj/Debug/BaratFajl.csproj.AssemblyReference.cache
Normal file
BIN
BaratFajl/obj/Debug/BaratFajl.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.csproj.AssemblyReference.cache
|
||||||
|
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.csproj.SuggestedBindingRedirects.cache
|
||||||
|
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.csproj.CoreCompileInputs.cache
|
||||||
|
C:\dev\c#\c-sharp\BaratFajl\bin\Debug\BaratFajl.exe.config
|
||||||
|
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\obj\Debug\BaratFajl.exe
|
||||||
|
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.pdb
|
||||||
BIN
BaratFajl/obj/Debug/BaratFajl.exe
Normal file
BIN
BaratFajl/obj/Debug/BaratFajl.exe
Normal file
Binary file not shown.
BIN
BaratFajl/obj/Debug/BaratFajl.pdb
Normal file
BIN
BaratFajl/obj/Debug/BaratFajl.pdb
Normal file
Binary file not shown.
Binary file not shown.
6
BaratLista/App.config
Normal file
6
BaratLista/App.config
Normal 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>
|
||||||
26
BaratLista/Barat.cs
Normal file
26
BaratLista/Barat.cs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BaratLista {
|
||||||
|
public class Barat {
|
||||||
|
private string nev;
|
||||||
|
private DateTime szuletes_ido;
|
||||||
|
private string nem;
|
||||||
|
private int bulizasi_szam;
|
||||||
|
|
||||||
|
public Barat(string nev, DateTime szul_ido, string nem, int b_szam) {
|
||||||
|
this.nev = nev;
|
||||||
|
this.nem = nem;
|
||||||
|
this.szuletes_ido = szul_ido;
|
||||||
|
this.bulizasi_szam = b_szam;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void kiir() {
|
||||||
|
string ido = szuletes_ido.ToShortDateString();
|
||||||
|
Console.WriteLine("Név: " + nev + " Születési idő: " + ido + " Nem: " + nem + " Bulizasi szam: " + bulizasi_szam);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
54
BaratLista/BaratLista.csproj
Normal file
54
BaratLista/BaratLista.csproj
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<?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>{03C758F5-57FB-456A-A4D0-51099EA8733A}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>BaratLista</RootNamespace>
|
||||||
|
<AssemblyName>BaratLista</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="Barat.cs" />
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
36
BaratLista/Program.cs
Normal file
36
BaratLista/Program.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
|
namespace BaratLista {
|
||||||
|
public class Program {
|
||||||
|
|
||||||
|
public static void beolvas() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Main(string[] args) {
|
||||||
|
List<Barat> baratok = new List<Barat>();
|
||||||
|
|
||||||
|
StreamReader reader = new StreamReader("baratok.txt", Encoding.Default);
|
||||||
|
int c = 0;
|
||||||
|
while(!reader.EndOfStream) {
|
||||||
|
if (c % 100000 == 0) Console.WriteLine(c);
|
||||||
|
c++;
|
||||||
|
string input = reader.ReadLine();
|
||||||
|
string[] adatok = input.Split(',');
|
||||||
|
baratok.Add(new Barat(adatok[0], DateTime.Parse(adatok[1]), adatok[2], Convert.ToInt32(adatok[3])));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < baratok.Count; i++) {
|
||||||
|
if (c % 100000 == 0)
|
||||||
|
baratok[i].kiir();
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.ReadKey();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
BaratLista/Properties/AssemblyInfo.cs
Normal file
36
BaratLista/Properties/AssemblyInfo.cs
Normal 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("BaratLista")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("BaratLista")]
|
||||||
|
[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("03c758f5-57fb-456a-a4d0-51099ea8733a")]
|
||||||
|
|
||||||
|
// 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
BaratLista/bin/Debug/BaratLista.exe
Normal file
BIN
BaratLista/bin/Debug/BaratLista.exe
Normal file
Binary file not shown.
6
BaratLista/bin/Debug/BaratLista.exe.config
Normal file
6
BaratLista/bin/Debug/BaratLista.exe.config
Normal 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
BaratLista/bin/Debug/BaratLista.pdb
Normal file
BIN
BaratLista/bin/Debug/BaratLista.pdb
Normal file
Binary file not shown.
@@ -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")]
|
||||||
BIN
BaratLista/obj/Debug/BaratLista.csproj.AssemblyReference.cache
Normal file
BIN
BaratLista/obj/Debug/BaratLista.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
a5b3f47cec925340e73685ba7ab5f8722211baf1
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
C:\dev\c#\c-sharp\BaratLista\bin\Debug\BaratLista.exe.config
|
||||||
|
C:\dev\c#\c-sharp\BaratLista\bin\Debug\BaratLista.exe
|
||||||
|
C:\dev\c#\c-sharp\BaratLista\bin\Debug\BaratLista.pdb
|
||||||
|
C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.csproj.AssemblyReference.cache
|
||||||
|
C:\dev\c#\c-sharp\BaratLista\obj\Debug\BaratLista.csproj.SuggestedBindingRedirects.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.pdb
|
||||||
BIN
BaratLista/obj/Debug/BaratLista.exe
Normal file
BIN
BaratLista/obj/Debug/BaratLista.exe
Normal file
Binary file not shown.
BIN
BaratLista/obj/Debug/BaratLista.pdb
Normal file
BIN
BaratLista/obj/Debug/BaratLista.pdb
Normal file
Binary file not shown.
Binary file not shown.
30
c-sharp.sln
30
c-sharp.sln
@@ -73,6 +73,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HengerUnitTeszt", "HengerUn
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListaKezeles", "ListaKezeles\ListaKezeles.csproj", "{DF138015-660A-433A-B0D0-1B1FBB70DF02}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListaKezeles", "ListaKezeles\ListaKezeles.csproj", "{DF138015-660A-433A-B0D0-1B1FBB70DF02}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BaratFajl", "BaratFajl\BaratFajl.csproj", "{CC20AF08-824E-441A-8C98-3E268919B749}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BaratLista", "BaratLista\BaratLista.csproj", "{03C758F5-57FB-456A-A4D0-51099EA8733A}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoLista", "AutoLista\AutoLista.csproj", "{1AD59409-0F91-46A7-A35A-1B13487FFA58}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -361,6 +367,30 @@ Global
|
|||||||
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|Any CPU.Build.0 = Release|Any CPU
|
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|x64.ActiveCfg = Release|Any CPU
|
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|x64.Build.0 = Release|Any CPU
|
{DF138015-660A-433A-B0D0-1B1FBB70DF02}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{CC20AF08-824E-441A-8C98-3E268919B749}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{03C758F5-57FB-456A-A4D0-51099EA8733A}.Release|x64.Build.0 = Release|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Debug|x64.Build.0 = Debug|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Release|x64.ActiveCfg = Release|Any CPU
|
||||||
|
{1AD59409-0F91-46A7-A35A-1B13487FFA58}.Release|x64.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
Reference in New Issue
Block a user