Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c958775e1b | |||
| 1bdf50c864 | |||
| 90a869e261 | |||
| 11972339b5 | |||
| b85b136ae6 | |||
| bc5fba8a18 | |||
| c77bc8e0d8 | |||
| 858b04991a | |||
| 4ebeab9e53 | |||
| a6a965d4ec | |||
| ca895f31ba | |||
| b3be3524a4 | |||
| 94c8842b3f | |||
| cd5d88c998 | |||
| 61562e1081 | |||
| 83462fffd2 | |||
| aa7898d302 | |||
| fc2ab0447b | |||
| 101aa2fb43 | |||
| 8653609617 | |||
| cbdc00b78c | |||
| baf73a91fe | |||
| 36ebb960a2 | |||
| fa8afcf105 | |||
| db9f2ec687 | |||
| e98213ebba | |||
| 2b463dc73b | |||
| ba27698afb | |||
| 28e23d90d7 | |||
| 681eb8297a | |||
|
|
1722b50d76 | ||
| 8394ad5ba8 | |||
| 7669fef74a | |||
| eb6c46ae9b | |||
| 3c7ff756e1 | |||
| d60c960f7b | |||
| c1046619c6 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
.vs/c-sharp/FileContentIndex/read.lock
Normal file
0
.vs/c-sharp/FileContentIndex/read.lock
Normal 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.
BIN
.vs/c-sharp/v17/TestStore/0/000.testlog
Normal file
BIN
.vs/c-sharp/v17/TestStore/0/000.testlog
Normal file
Binary file not shown.
BIN
.vs/c-sharp/v17/TestStore/0/testlog.manifest
Normal file
BIN
.vs/c-sharp/v17/TestStore/0/testlog.manifest
Normal file
Binary file not shown.
@@ -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.
BIN
AtlagHom/bin/Release/AtlagHom.exe
Normal file
BIN
AtlagHom/bin/Release/AtlagHom.exe
Normal file
Binary file not shown.
6
AtlagHom/bin/Release/AtlagHom.exe.config
Normal file
6
AtlagHom/bin/Release/AtlagHom.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.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
AtlagHom/bin/Release/AtlagHom.pdb
Normal file
BIN
AtlagHom/bin/Release/AtlagHom.pdb
Normal file
Binary file not shown.
BIN
AtlagHom/bin/x64/Debug/AtlagHom.exe
Normal file
BIN
AtlagHom/bin/x64/Debug/AtlagHom.exe
Normal file
Binary file not shown.
6
AtlagHom/bin/x64/Debug/AtlagHom.exe.config
Normal file
6
AtlagHom/bin/x64/Debug/AtlagHom.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.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
AtlagHom/bin/x64/Debug/AtlagHom.pdb
Normal file
BIN
AtlagHom/bin/x64/Debug/AtlagHom.pdb
Normal file
Binary file not shown.
BIN
AtlagHom/bin/x64/Release/AtlagHom.exe
Normal file
BIN
AtlagHom/bin/x64/Release/AtlagHom.exe
Normal file
Binary file not shown.
6
AtlagHom/bin/x64/Release/AtlagHom.exe.config
Normal file
6
AtlagHom/bin/x64/Release/AtlagHom.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.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
AtlagHom/bin/x64/Release/AtlagHom.pdb
Normal file
BIN
AtlagHom/bin/x64/Release/AtlagHom.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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")]
|
||||||
BIN
AtlagHom/obj/Release/AtlagHom.csproj.AssemblyReference.cache
Normal file
BIN
AtlagHom/obj/Release/AtlagHom.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
6059d4e65ee015d416e91b2605eaf86bfd91c969
|
||||||
@@ -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
|
||||||
BIN
AtlagHom/obj/Release/AtlagHom.exe
Normal file
BIN
AtlagHom/obj/Release/AtlagHom.exe
Normal file
Binary file not shown.
BIN
AtlagHom/obj/Release/AtlagHom.pdb
Normal file
BIN
AtlagHom/obj/Release/AtlagHom.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.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
BIN
AtlagHom/obj/x64/Debug/AtlagHom.csproj.AssemblyReference.cache
Normal file
BIN
AtlagHom/obj/x64/Debug/AtlagHom.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
a716bfef2e809d656a083b5be6f3dfe2908c1bec
|
||||||
16
AtlagHom/obj/x64/Debug/AtlagHom.csproj.FileListAbsolute.txt
Normal file
16
AtlagHom/obj/x64/Debug/AtlagHom.csproj.FileListAbsolute.txt
Normal 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
|
||||||
BIN
AtlagHom/obj/x64/Debug/AtlagHom.exe
Normal file
BIN
AtlagHom/obj/x64/Debug/AtlagHom.exe
Normal file
Binary file not shown.
BIN
AtlagHom/obj/x64/Debug/AtlagHom.pdb
Normal file
BIN
AtlagHom/obj/x64/Debug/AtlagHom.pdb
Normal file
Binary file not shown.
Binary file not shown.
@@ -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")]
|
||||||
BIN
AtlagHom/obj/x64/Release/AtlagHom.csproj.AssemblyReference.cache
Normal file
BIN
AtlagHom/obj/x64/Release/AtlagHom.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
0ad2913c3c24bfd3eb472a8770b9e4a19a0c875d
|
||||||
@@ -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
|
||||||
BIN
AtlagHom/obj/x64/Release/AtlagHom.exe
Normal file
BIN
AtlagHom/obj/x64/Release/AtlagHom.exe
Normal file
Binary file not shown.
BIN
AtlagHom/obj/x64/Release/AtlagHom.pdb
Normal file
BIN
AtlagHom/obj/x64/Release/AtlagHom.pdb
Normal file
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
35
AutoLista/Program.cs
Normal file
35
AutoLista/Program.cs
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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
|
||||||
16
AutoLista/obj/Debug/AutoLista.csproj.FileListAbsolute.txt
Normal file
16
AutoLista/obj/Debug/AutoLista.csproj.FileListAbsolute.txt
Normal 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
|
||||||
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
BMI/App.config
Normal file
6
BMI/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
BMI/BMI.csproj
Normal file
53
BMI/BMI.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>{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
19
BMI/Program.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
BMI/Properties/AssemblyInfo.cs
Normal file
36
BMI/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("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
BIN
BMI/bin/Debug/BMI.exe
Normal file
Binary file not shown.
6
BMI/bin/Debug/BMI.exe.config
Normal file
6
BMI/bin/Debug/BMI.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
BMI/bin/Debug/BMI.pdb
Normal file
BIN
BMI/bin/Debug/BMI.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
BMI/obj/Debug/BMI.csproj.AssemblyReference.cache
Normal file
BIN
BMI/obj/Debug/BMI.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
BMI/obj/Debug/BMI.csproj.CoreCompileInputs.cache
Normal file
1
BMI/obj/Debug/BMI.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2f1b5aa9ca9324e732c8dc8ad98b9a6b4836d80a
|
||||||
8
BMI/obj/Debug/BMI.csproj.FileListAbsolute.txt
Normal file
8
BMI/obj/Debug/BMI.csproj.FileListAbsolute.txt
Normal 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
BIN
BMI/obj/Debug/BMI.exe
Normal file
Binary file not shown.
BIN
BMI/obj/Debug/BMI.pdb
Normal file
BIN
BMI/obj/Debug/BMI.pdb
Normal file
Binary file not shown.
BIN
BMI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
BMI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
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>
|
||||||
1039
BaratFajl/Program.cs
Normal file
1039
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
|
||||||
16
BaratFajl/obj/Debug/BaratFajl.csproj.FileListAbsolute.txt
Normal file
16
BaratFajl/obj/Debug/BaratFajl.csproj.FileListAbsolute.txt
Normal 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
|
||||||
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>
|
||||||
38
BaratLista/Barat.cs
Normal file
38
BaratLista/Barat.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
61
BaratLista/BaratLista.csproj
Normal file
61
BaratLista/BaratLista.csproj
Normal 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
66
BaratLista/Konzol.cs
Normal 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
79
BaratLista/Program.cs
Normal 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
Reference in New Issue
Block a user