37 Commits

Author SHA1 Message Date
c958775e1b update 2022-06-09 09:54:49 +02:00
1bdf50c864 update 2022-06-07 13:52:04 +02:00
90a869e261 update 2022-05-31 09:44:01 +02:00
11972339b5 update 2022-05-31 08:46:10 +02:00
b85b136ae6 barat 2022-05-22 17:11:48 +02:00
bc5fba8a18 update 2022-05-18 20:09:59 +02:00
c77bc8e0d8 update 2022-05-18 18:17:23 +02:00
858b04991a update 2022-05-18 18:16:46 +02:00
4ebeab9e53 auto lista 2022-05-18 17:56:52 +02:00
a6a965d4ec Lista kezeles 2022-05-16 12:52:22 +02:00
ca895f31ba Lista kezeles 2022-05-16 12:48:33 +02:00
b3be3524a4 update 2022-05-05 20:05:30 +02:00
94c8842b3f unit test 2022-05-05 19:21:33 +02:00
cd5d88c998 update 2022-04-29 11:55:26 +02:00
61562e1081 unit test 2022-04-29 11:17:25 +02:00
83462fffd2 Unit test 2022-04-29 11:16:40 +02:00
aa7898d302 update 2022-04-27 10:49:39 +02:00
fc2ab0447b csv 2022-04-27 10:48:53 +02:00
101aa2fb43 nullable 2022-04-25 11:33:44 +02:00
8653609617 nullable 2022-04-25 11:32:37 +02:00
cbdc00b78c update 2022-04-07 18:32:16 +02:00
baf73a91fe update 2022-04-07 18:31:07 +02:00
36ebb960a2 update3 2022-04-07 15:00:40 +02:00
fa8afcf105 update 2022-04-07 14:58:49 +02:00
db9f2ec687 Listak kesz 2022-04-05 18:15:07 +02:00
e98213ebba lista feladatok 2022-04-05 17:24:42 +02:00
2b463dc73b Vektorok feladat 2022-04-01 11:17:06 +02:00
ba27698afb update 2022-03-28 10:13:55 +02:00
28e23d90d7 kivetel 2022-03-26 07:35:04 +01:00
681eb8297a kivetelek 2022-03-26 07:34:16 +01:00
Playmaker1210
1722b50d76 Merge pull request #2 from Playmaker1210/regex
Regex
2022-03-22 17:30:47 +01:00
8394ad5ba8 homerseklet elemzes kesz 2022-03-22 17:29:31 +01:00
7669fef74a homerseklet elemzes 2022-03-22 16:13:19 +01:00
eb6c46ae9b update 2022-03-20 10:01:19 +01:00
3c7ff756e1 regex 2022-02-28 16:44:30 +01:00
d60c960f7b Regex 2022-02-28 16:42:08 +01:00
c1046619c6 Rekurziv Hatvany 2022-02-18 08:52:34 +01:00
2091 changed files with 520470 additions and 82 deletions

View File

View File

@@ -35,7 +35,20 @@
"ProjectGuid": "f7beeb1c-eb73-42e8-a148-3db8c96b8d56", "ProjectGuid": "f7beeb1c-eb73-42e8-a148-3db8c96b8d56",
"DisplayName": "RekurzivFaktorialis", "DisplayName": "RekurzivFaktorialis",
"ColorIndex": 6 "ColorIndex": 6
},
"b8063178-720e-430c-b364-dc3f1dfce42c": {
"ProjectGuid": "b8063178-720e-430c-b364-dc3f1dfce42c",
"DisplayName": "RegularExpressions",
"ColorIndex": 7
<<<<<<< HEAD
=======
},
"a2fe74e1-b743-11d0-ae1a-00a0c90fffc3": {
"ProjectGuid": "a2fe74e1-b743-11d0-ae1a-00a0c90fffc3",
"DisplayName": "Miscellaneous Files",
"ColorIndex": -1
>>>>>>> 1722b50d769c00ebff6c05ae1af878a62927b941
} }
}, },
"NextColorIndex": 7 "NextColorIndex": 8
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -32,6 +32,26 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />

Binary file not shown.

Binary file not shown.

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.7.2" />
</startup>
</configuration>

Binary file not shown.

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.7.2" />
</startup>
</configuration>

Binary file not shown.

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.7.2" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

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.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@@ -0,0 +1 @@
6059d4e65ee015d416e91b2605eaf86bfd91c969

View File

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

Binary file not shown.

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.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@@ -0,0 +1 @@
a716bfef2e809d656a083b5be6f3dfe2908c1bec

View File

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

Binary file not shown.

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.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@@ -0,0 +1 @@
0ad2913c3c24bfd3eb472a8770b9e4a19a0c875d

View File

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

Binary file not shown.

Binary file not shown.

6
AutoLista/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>

28
AutoLista/Auto.cs Normal file
View 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);
}
}
}

View 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

File diff suppressed because it is too large Load Diff

35
AutoLista/Program.cs Normal file
View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace AutoLista {
internal class Program {
static void Main(string[] args) {
//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();
}
}
}

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("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")]

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 @@
e7d25a20464e507bab0c54b30f4a7dfdaffb2962

View File

@@ -0,0 +1,16 @@
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
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

Binary file not shown.

Binary file not shown.

6
BMI/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
BMI/BMI.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>{119B48A5-5CB7-4C35-AADA-64EF85E66AA3}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BMI</RootNamespace>
<AssemblyName>BMI</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>

19
BMI/Program.cs Normal file
View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BMI {
internal class Program {
static void Main(string[] args) {
Console.WriteLine("Adja meg a magassagat cm-ben");
int magassag = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Adja meg a tomeget");
int tomeg = Convert.ToInt32(Console.ReadLine());
double bmi = tomeg / (magassag * magassag);
Console.WriteLine("BMI-je: " + bmi);
}
}
}

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("BMI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BMI")]
[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("119b48a5-5cb7-4c35-aada-64ef85e66aa3")]
// 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
BMI/bin/Debug/BMI.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
BMI/bin/Debug/BMI.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#\c-sharp\BMI\bin\Debug\BMI.exe.config
C:\dev\c#\c-sharp\BMI\bin\Debug\BMI.exe
C:\dev\c#\c-sharp\BMI\bin\Debug\BMI.pdb
C:\dev\c#\c-sharp\BMI\obj\Debug\BMI.csproj.AssemblyReference.cache
C:\dev\c#\c-sharp\BMI\obj\Debug\BMI.csproj.SuggestedBindingRedirects.cache
C:\dev\c#\c-sharp\BMI\obj\Debug\BMI.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\BMI\obj\Debug\BMI.exe
C:\dev\c#\c-sharp\BMI\obj\Debug\BMI.pdb

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

Binary file not shown.

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

Binary file not shown.

6
BaratFajl/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>{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>

1039
BaratFajl/Program.cs Normal file

File diff suppressed because it is too large Load Diff

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("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")]

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,16 @@
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
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.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\obj\Debug\BaratFajl.exe
C:\dev\c#\c-sharp\BaratFajl\obj\Debug\BaratFajl.pdb

Binary file not shown.

Binary file not shown.

6
BaratLista/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>

38
BaratLista/Barat.cs Normal file
View File

@@ -0,0 +1,38 @@
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 DateTime getSzuletes() {
return szuletes_ido;
}
public string getNev() {
return nev;
}
public int getBulizasi_szam() {
return bulizasi_szam;
}
public void kiir() {
string ido = szuletes_ido.ToShortDateString();
Console.WriteLine("Név: " + nev + "\tSzületési idő: " + ido + "\tNem: " + nem + "\tBulizasi szam: " + bulizasi_szam);
}
}
}

View File

@@ -0,0 +1,61 @@
<?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="Konzol.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</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" />
</Project>

66
BaratLista/Konzol.cs Normal file
View File

@@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BaratLista {
public static class Konzol {
public static int index = 0;
private static int count;
private static ConsoleKeyInfo key;
public static void getCount(int listCount) {
count = listCount;
}
public static void kiir(List<Barat> list) {
//20 adat kiirasa
int tartomany = index + 20;
for (int i = index; i < tartomany; i++) {
Console.Write((i+1) + "\t");
list[i].kiir();
}
}
public static void ReadKey() {
//Gomb beolvasasa
key = Console.ReadKey();
Console.WriteLine(key.Key);
System.Threading.Thread.Sleep(2000);
}
public static void dontes() {
if (key.Key == ConsoleKey.PageUp) {
fel();
} else if (key.Key == ConsoleKey.PageDown) {
le();
} else if (key.Key == ConsoleKey.Home) {
home();
} else if (key.Key == ConsoleKey.End) {
end();
} else if (key.Key == ConsoleKey.Delete) {
Program.buli();
} else
Console.WriteLine("Nem jo gombot nyomott le!!");
}
private static void fel() {
index++;
if (index == count - 19) index = count - 20;
}
private static void le() {
index--;
if (index < 0) index = 0;
}
private static void home() {
index = 0;
}
private static void end() {
index = count - 20;
}
}
}

79
BaratLista/Program.cs Normal file
View File

@@ -0,0 +1,79 @@
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 List<Barat> baratok = new List<Barat>();
public static void buli() {
int ev = DateTime.Now.Year - 20;
List<Barat> nevek = new List<Barat>();
for (int i = 0; i < baratok.Count; i++) {
if (baratok[i].getSzuletes().Year < ev && baratok[i].getBulizasi_szam() >= 5) {
if(nevek.Count != 15) {
nevek.Add(baratok[i]);
} else {
int min = 11;
int min_i = -1;
for (int j = 0; j < nevek.Count; j++) {
if (nevek[j].getBulizasi_szam() < min) {
min = nevek[j].getBulizasi_szam();
min_i = j;
}
}
nevek.RemoveAt(min_i);
nevek.Add(baratok[i]);
}
}
}
if(nevek.Count > 9) {
for (int i = 0; i < nevek.Count; i++) {
Console.WriteLine(nevek[i].getNev());
}
} else {
Console.WriteLine("Nincs eleg ember a bulizashoz");
}
Console.WriteLine("Folytatashoz nyomjon meg egy gombot");
Console.ReadKey();
}
public static void Main() {
//fajl letrehozasa
BaratFajl.Program.Main();
//fajl beolvasasa
StreamReader reader = new StreamReader("baratok.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(',');
baratok.Add(new Barat(adatok[0], DateTime.Parse(adatok[1]), adatok[2], Convert.ToInt32(adatok[3])));
}
//main loop
Konzol.getCount(baratok.Count);
while (true) {
Console.Clear();
Console.WriteLine("A PageUp es PageDown gombokkal tud lepkedni a megjelenitendo sorokon");
Console.WriteLine("A Home es End gombokkal a lista elejere es vegere tud lepni");
Console.WriteLine("A Del gomb megnyomasaval meg tudja nezni van e eleg fo egy bulihoz");
Console.WriteLine("Egy gomb megnyomasa utan a program 2 mp-t fog varni\n");
Konzol.kiir(baratok);
Konzol.ReadKey();
Konzol.dontes();
}
}
}
}

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