Compare commits

..

69 Commits

Author SHA1 Message Date
szabomarton
63f7dff9c2 added orai 2025-04-10 10:16:36 +02:00
szabomarton
c1a5f01a3a added feladat2 2025-04-10 09:43:54 +02:00
szabomarton
18b6ad86b2 added partial solution 2025-04-02 12:11:05 +02:00
szabomarton
286ea045d5 added összetett feladat 2025-04-02 11:41:34 +02:00
szabomarton
ae3a73d55c removed mobilfejlesztes.md 2025-02-27 09:08:16 +01:00
szabomarton
bbd66b3c1a added mobilfejlesztes 2025-02-26 12:50:26 +01:00
Digi
486f343518 added unit tests 2025-02-22 10:45:14 +01:00
Digi
4644da4212 finished HW #1 2025-02-22 09:59:35 +01:00
szabomarton
3df13eabe6 asd 2025-02-21 11:11:41 +01:00
szabomarton
45866fb212 added HF 2025-02-21 10:44:52 +01:00
Digi
806cec4e0a HF is almost done 2025-02-21 06:58:11 +01:00
szabomarton
5c776bdac7 added doga 2025-02-20 10:16:23 +01:00
Digi
0c13e46d4a finished the console part 2025-02-20 06:55:21 +01:00
szabomarton
2134005486 TODO finish HF 2025-02-19 12:59:05 +01:00
szabomarton
e855b0fa00 uszoverseny done 2025-02-14 11:20:29 +01:00
szabomarton
deb3b3d48f asd 2025-02-13 10:19:22 +01:00
szabomarton
16faf57a92 ads 2025-02-12 12:57:14 +01:00
szabomarton
4134809662 added szoftteszt 2025-01-31 10:40:04 +01:00
szabomarton
0fc2b5f641 asd 2025-01-30 10:20:25 +01:00
szabomarton
21cb07657d Merge branch 'main' of https://git.gszi.edu.hu/szabomarton/ProgaOra 2025-01-29 09:18:15 +01:00
szabomarton
6c466bc3f4 added adatstrukturak 2025-01-29 09:18:00 +01:00
Digi
4593dacbef finished 2025-01-26 16:55:38 +01:00
szabomarton
bf8fe573a3 added solid 2025-01-24 11:21:41 +01:00
szabomarton
bfcd5595b1 added orai 2025-01-23 10:13:31 +01:00
szabomarton
33563aceba added orai 2025-01-22 12:55:57 +01:00
szabomarton
9239fcb71d added solution for Feladatok.pdf 2025-01-16 08:54:39 +01:00
szabomarton
7a859a9aaf asd 2025-01-15 12:55:20 +01:00
szabomarton
553b8ccc94 rekurzio, fibo, faktorialis 2025-01-09 09:20:43 +01:00
szabomarton
1c5c967ccf added orai 2024-12-13 10:44:46 +01:00
szabomarton
306c0efbb7 buborek rendezes 2024-12-12 10:12:57 +01:00
szabomarton
b5ae918593 added hashmap 2024-12-11 12:42:17 +01:00
szabomarton
affd565abf asd 2024-12-06 11:19:07 +01:00
szabomarton
97d51cdc15 hash 2024-12-05 10:15:38 +01:00
szabomarton
0a1a02d48b asd 2024-11-27 12:57:25 +01:00
szabomarton
630904fdf1 added orai 2024-11-22 10:45:16 +01:00
szabomarton
d802eb4b67 added orai 2024-11-21 10:08:03 +01:00
szabomarton
152126ad18 asd 2024-11-15 11:16:13 +01:00
szabomarton
db1b67ebf8 added orai 2024-11-14 09:49:26 +01:00
szabomarton
89f67d62d9 added adatstrukturak 2024-11-13 12:52:21 +01:00
szabomarton
ce936f62c7 asd 2024-11-13 11:43:37 +01:00
szabomarton
a4c2fd505a added doga 2024-11-07 09:49:02 +01:00
Digi
9d05ca3229 added some practice examples 2024-11-07 07:00:00 +01:00
szabomarton
5452d2423b added things 2024-10-24 10:20:01 +02:00
szabomarton
4e53886e57 adde wpf things 2024-10-17 10:01:09 +02:00
szabomarton
39090a199e adde orai 2024-10-16 12:46:08 +02:00
szabomarton
e328bf3c49 added wpf examples 2024-10-11 11:15:01 +02:00
szabomarton
0ff66b2775 added orai 2024-10-10 08:55:10 +02:00
szabomarton
ae4801ec45 added Dolgozat 2024-09-25 13:02:26 +02:00
Digi
6bc4e13d38 finished homework 2024-09-22 12:19:00 +02:00
Digi
bcd8982b11 commit 2 2024-09-22 11:43:22 +02:00
Digi
a3c88b8404 asd 2024-09-22 11:41:32 +02:00
szabomarton
15e2a5bae3 TODO finish 2024-09-20 11:20:21 +02:00
szabomarton
82fc6b674f asd 2024-09-19 10:13:48 +02:00
szabomarton
0c4c5300eb asd 2024-09-18 12:54:45 +02:00
szabomarton
4ea517eedb finished maratonvaltoGUI filed dialog 2024-09-18 12:33:54 +02:00
szabomarton
3e10d7c768 added dolgozat.pdf 2024-09-18 11:42:52 +02:00
szabomarton
fa6e106910 added some linq 2024-09-13 11:19:39 +02:00
szabomarton
a0d873af59 added maratonvalto doga 2024-09-13 08:04:15 +02:00
szabomarton
b62deda57c asd 2024-09-11 12:53:39 +02:00
szabomarton
c59f7fe309 added LINQ 2024-09-11 12:36:39 +02:00
Digi
40d3601e7f finished gyakorlasGUI 2024-09-08 17:31:12 +02:00
Digi
1ac18d6715 Finished gyakorlas (NO GUI) 2024-09-07 11:30:29 +02:00
szabomarton
011436e3de finished feladat8 2024-09-06 11:18:19 +02:00
szabomarton
1bd4104c41 TODO finish 2024-09-06 11:15:44 +02:00
szabomarton
a65445d666 asd 2024-09-06 11:08:29 +02:00
szabomarton
7d37ac1ade added yesterday's work 2024-09-06 09:55:00 +02:00
szabomarton
ee16187e24 Finished HIANYZOK 2024-06-03 13:56:37 +02:00
szabomarton
c45c3d0253 TODO finish 2024-06-03 11:19:11 +02:00
szabomarton
da9bf843d6 almost finished 2024-05-27 13:16:08 +02:00
3353 changed files with 589315 additions and 31 deletions

83
2.feladat.txt Normal file
View File

@@ -0,0 +1,83 @@
1.
A devops két szó egyvelege: development, operations.
Ez igazából egy szemléletmód vagy praktika amit a mai modern cégek előszeretettel használnak,
ugyanis célja hogy a szofter fejlesztése és az üzemeltetése együttműködjön.
Ez a szemléletmód kölcsönösen segíti a fejlesztést és az üzemeltetést is,
ugyanis a hibákat is könnyebb kijavítani ha gyakran tesztelünk.
2.
Rövid fejlesztési is kiadási ciklusok: gyors piacra jutás
- Manapság fontos az, hogyha van egy ötletünk amiből "kézzel fogható" szoftvert akarunk csinálni,
azt mihamarabb kiadjuk, különben mások megelőzhetnek minket,
ami pénzkiesést jelenthet egy kisebb vagy akár egy nagyobb cégnek is.
Automatizált fejlesztés, tesztelés és telepítés
- Ezek a fejlesztési technikák segítik elő a gyorsabb piacrajutást.
Hibák gyorsabb felfedezése, helyreállítás idejének javítása
- Ha a "kész" szoftverben a felhasználók hibát találnak,
de azt a fejlesztői csapat gyorsan kijavítja akkor a szoftver értéke és megbízhatósága nő,
ami növeli a cég értékét is.
A nap végén minden cégnek csak az számít hogy hogyan tud minél rövidebb idő alatt minél több pénzt keresni,
ezért is fontos a fejlesztés sebessége, a hibák minimalizálásával.
Monitorozás: Jelentések, metrikák és logok biztosítása
-Fontos a felhasználók monitorozása a jövőbeli hibák elkerülése érdekében.
Könnyedén lehetséges olyan elem a szoftverben ami a későbbiekben szűk keresztmetszet lehet,
monitorozással ezek a problémák felderülnek, és ki lehet azokat javítani mielőtt ténylegesen felmerülnének.
Rugalmasság: Felhasználói igények folyamatos kiszolgálása, piaci versenyhez igazodás
-Minél jobban addiktív egy szoftver annál több pénzt lehet a felhasználókból kicsikarni.
Minden cég számára fontos, hogy a felhasználói megelégedettek legyenek az általuk értékesített termékkel.
Folyamatos fejlődés és tanulás
- Egybefügg a rugalmassággal, tanulni kell a csapat hibáiból, a felhasználó igényeire kell fejleszteni a szoftvert.
Továbbá fontos a csapatmunka is a devops szemléletben ugyanis a nagyvállalati szoftvereket nem egyetlen ember írja.
3.
A megrendelésre elkészült szoftvereket továbbították a megrendelőnek,
akinek önerőből kellett üzemeltetnie az alkalmazást.
Ehhez kellett valaki aki ért az üzemeltetéshez, kiépíti a futtatási környezetet a cégen belül.
Ezzel szemben a devops ezt megkönnyíti, ugyanis a devops célja az is hogy az üzemeltetést is megkönnyítse.
A fejlesztők létrehoznak egy konténert ami minden speciális futtatási környezeti változót tartalmaz,
így gyakorlatilag csak futtatnia kell a megrendelőnek a konténert és máris elérhető a szoftver a felhasználók számára.
4.
Az agilis módszertan a vevő/felhasználó és a fejlesztő között teremt kapcsolatot.
Fontos a folyamatos kommunikáció a két fél között a hibák elkerülése érdekében.
A devops ugyan ezen az elven működik csak a kommunikáció a fejlesztő és az üzemeltető között zajlik le.
Gyakorlatilag ha a fejlesztési kapcsolatok egy hárompontú gráffal lenne jellemezve,
akkor az agilis felelne meg az egyik élnek, a devops a másiknak.
agilis devops
megrendelő <------> fejlesztő <-------> üzemeltető
5.
A pipeline hasonlóan működik a devopsban mint a bash scriptben.
Ha egy folyamat kész annak a végterméke lesz a következő folyamat alapállapota.
Igazából csak egy soros végrehajtást ír le amit követni kell.
Végigvezeti a fejlesztőt a kezdeti kódtól egészen a kész szoftverig.
A következő képpen néz ki a pipeline:
Code -> Build -> Test -> Release -> Deploy -> Monitoring
Két részre osztható:
CI (Folyamatos integráció)
célja a kód továbbépítése a projektbe.
megvalósítás:
folyamatos verziókövetés
ci eszköz automatikusan buildel
unit illetve integrációs tesztek
dokumentálás
CD (Folyamatos szállítás)
célja az agilis rendszer fenntartása.
Ha hiba van a szoftverben jó ha hamar kiderül.
Ha jó a változtatás akkor meg a felhasználók örülhetnek az új featurenek.
megvalósítás
build átvétele
csomag készítése
verzió megjelölése
átfogóbb tesztek végzése
tesztkörnyezetbe való telepítés és tesztelés
éles telepítés
monitorozás

Binary file not shown.

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34729.46
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{D216FBE7-57E2-44FE-9589-59ACE0865655}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D216FBE7-57E2-44FE-9589-59ACE0865655}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D216FBE7-57E2-44FE-9589-59ACE0865655}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D216FBE7-57E2-44FE-9589-59ACE0865655}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D216FBE7-57E2-44FE-9589-59ACE0865655}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BC24084B-F151-4ECF-95BD-EEDEE846CC8F}
EndGlobalSection
EndGlobal

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>

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>{D216FBE7-57E2-44FE-9589-59ACE0865655}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp1</RootNamespace>
<AssemblyName>ConsoleApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</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>

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Random random = new Random();
Console.WriteLine(random.Next(1, 6));
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("ConsoleApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApp1")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("d216fbe7-57e2-44fe-9589-59ace0865655")]
// 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")]

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>

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

View File

@@ -0,0 +1,7 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb

View File

@@ -37,16 +37,16 @@ namespace WindowsFormsApp1
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label(); this.Film_cime = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.label7 = new System.Windows.Forms.Label(); this.Talalat = new System.Windows.Forms.Label();
this.listBox2 = new System.Windows.Forms.ListBox(); this.listBox2 = new System.Windows.Forms.ListBox();
this.button4 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button();
this.Cim = new System.Windows.Forms.TextBox(); this.Cim = new System.Windows.Forms.TextBox();
this.Ev = new System.Windows.Forms.TextBox(); this.Ev = new System.Windows.Forms.TextBox();
this.Jelolesek = new System.Windows.Forms.TextBox(); this.Jelolesek = new System.Windows.Forms.TextBox();
this.Dijak = new System.Windows.Forms.TextBox(); this.Dijak = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox(); this.Searched = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
@@ -67,6 +67,7 @@ namespace WindowsFormsApp1
this.listBox1.Name = "listBox1"; this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(198, 368); this.listBox1.Size = new System.Drawing.Size(198, 368);
this.listBox1.TabIndex = 1; this.listBox1.TabIndex = 1;
this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
// //
// label2 // label2
// //
@@ -112,6 +113,7 @@ namespace WindowsFormsApp1
this.button1.TabIndex = 6; this.button1.TabIndex = 6;
this.button1.Text = "Új film felvétele"; this.button1.Text = "Új film felvétele";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
// //
// button2 // button2
// //
@@ -121,15 +123,16 @@ namespace WindowsFormsApp1
this.button2.TabIndex = 7; this.button2.TabIndex = 7;
this.button2.Text = "Legtöbb díjat kapta"; this.button2.Text = "Legtöbb díjat kapta";
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
// //
// label6 // Film_cime
// //
this.label6.AutoSize = true; this.Film_cime.AutoSize = true;
this.label6.Location = new System.Drawing.Point(283, 256); this.Film_cime.Location = new System.Drawing.Point(283, 256);
this.label6.Name = "label6"; this.Film_cime.Name = "Film_cime";
this.label6.Size = new System.Drawing.Size(55, 13); this.Film_cime.Size = new System.Drawing.Size(55, 13);
this.label6.TabIndex = 8; this.Film_cime.TabIndex = 8;
this.label6.Text = "Film címe:"; this.Film_cime.Text = "Film címe:";
// //
// button3 // button3
// //
@@ -139,15 +142,16 @@ namespace WindowsFormsApp1
this.button3.TabIndex = 9; this.button3.TabIndex = 9;
this.button3.Text = "keres"; this.button3.Text = "keres";
this.button3.UseVisualStyleBackColor = true; this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
// //
// label7 // Talalat
// //
this.label7.AutoSize = true; this.Talalat.AutoSize = true;
this.label7.Location = new System.Drawing.Point(283, 357); this.Talalat.Location = new System.Drawing.Point(283, 357);
this.label7.Name = "label7"; this.Talalat.Name = "Talalat";
this.label7.Size = new System.Drawing.Size(74, 13); this.Talalat.Size = new System.Drawing.Size(74, 13);
this.label7.TabIndex = 10; this.Talalat.TabIndex = 10;
this.label7.Text = "Találat kiírása"; this.Talalat.Text = "Találat kiírása";
// //
// listBox2 // listBox2
// //
@@ -165,6 +169,7 @@ namespace WindowsFormsApp1
this.button4.TabIndex = 12; this.button4.TabIndex = 12;
this.button4.Text = "listázz"; this.button4.Text = "listázz";
this.button4.UseVisualStyleBackColor = true; this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
// //
// Cim // Cim
// //
@@ -194,12 +199,12 @@ namespace WindowsFormsApp1
this.Dijak.Size = new System.Drawing.Size(159, 20); this.Dijak.Size = new System.Drawing.Size(159, 20);
this.Dijak.TabIndex = 16; this.Dijak.TabIndex = 16;
// //
// textBox5 // Searched
// //
this.textBox5.Location = new System.Drawing.Point(286, 303); this.Searched.Location = new System.Drawing.Point(286, 303);
this.textBox5.Name = "textBox5"; this.Searched.Name = "Searched";
this.textBox5.Size = new System.Drawing.Size(159, 20); this.Searched.Size = new System.Drawing.Size(159, 20);
this.textBox5.TabIndex = 17; this.Searched.TabIndex = 17;
// //
// textBox6 // textBox6
// //
@@ -207,6 +212,7 @@ namespace WindowsFormsApp1
this.textBox6.Name = "textBox6"; this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(198, 20); this.textBox6.Size = new System.Drawing.Size(198, 20);
this.textBox6.TabIndex = 18; this.textBox6.TabIndex = 18;
this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged);
// //
// Form1 // Form1
// //
@@ -214,16 +220,16 @@ namespace WindowsFormsApp1
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.textBox6); this.Controls.Add(this.textBox6);
this.Controls.Add(this.textBox5); this.Controls.Add(this.Searched);
this.Controls.Add(this.Dijak); this.Controls.Add(this.Dijak);
this.Controls.Add(this.Jelolesek); this.Controls.Add(this.Jelolesek);
this.Controls.Add(this.Ev); this.Controls.Add(this.Ev);
this.Controls.Add(this.Cim); this.Controls.Add(this.Cim);
this.Controls.Add(this.button4); this.Controls.Add(this.button4);
this.Controls.Add(this.listBox2); this.Controls.Add(this.listBox2);
this.Controls.Add(this.label7); this.Controls.Add(this.Talalat);
this.Controls.Add(this.button3); this.Controls.Add(this.button3);
this.Controls.Add(this.label6); this.Controls.Add(this.Film_cime);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.Controls.Add(this.label5); this.Controls.Add(this.label5);
@@ -250,16 +256,16 @@ namespace WindowsFormsApp1
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label Film_cime;
private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label Talalat;
private System.Windows.Forms.ListBox listBox2; private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox Cim; private System.Windows.Forms.TextBox Cim;
private System.Windows.Forms.TextBox Ev; private System.Windows.Forms.TextBox Ev;
private System.Windows.Forms.TextBox Jelolesek; private System.Windows.Forms.TextBox Jelolesek;
private System.Windows.Forms.TextBox Dijak; private System.Windows.Forms.TextBox Dijak;
private System.Windows.Forms.TextBox textBox5; private System.Windows.Forms.TextBox Searched;
private System.Windows.Forms.TextBox textBox6; private System.Windows.Forms.TextBox textBox6;
} }
} }

View File

@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.IO; using System.IO;
using System.Text.RegularExpressions;
namespace WindowsFormsApp1 namespace WindowsFormsApp1
{ {
@@ -39,21 +40,136 @@ namespace WindowsFormsApp1
Data.films.Add(film); Data.films.Add(film);
line = streamReader.ReadLine();
} }
streamReader.Close(); streamReader.Close();
fileStream.Close(); fileStream.Close();
foreach (var item in Data.films)
{
Data.filmnames.Add(item.cim);
}
Data.filmnames.Sort();
foreach (var item in Data.filmnames)
{
listBox1.Items.Add(item);
}
} }
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (Cim.Text != null && Ev.Text != null && Jelolesek.Text != null && Dijak.Text != null)
{
char[] azon = new char[6];
for (int i = Cim.Text.Length - 1, j = 0; i > Cim.Text.Length - 4; i--, j++)
{
azon[j] = Cim.Text[i];
}
azon[4] = Ev.Text[Ev.Text.Length - 1];
azon[5] = Ev.Text[Ev.Text.Length - 2];
string azonosito = azon.ToString();
Film film = new Film(azonosito, Cim.Text, Convert.ToInt32(Ev.Text), Convert.ToInt32(Jelolesek.Text), Convert.ToInt32(Dijak.Text));
Data.films.Add(film);
return;
}
MessageBox.Show("ERROR");
return;
}
private void button2_Click(object sender, EventArgs e)
{
Film_cime.Text = $"Film címe: {Data.films[Filmname_index()].cim}";
}
private int Filmname_index()
{
int max = Data.films[0].dij;
foreach (var item in Data.films)
{
if (item.dij > max)
{
max = item.dij;
}
}
return max;
}
private void button3_Click(object sender, EventArgs e)
{
string cim = Search(Searched.Text);
string talalat = $"Találat kiírása: {cim}";
Talalat.Text = talalat;
}
private string Search(string searched_word)
{
string pattrern = $"{searched_word}".ToLower();
Regex regex = new Regex(pattrern);
if (searched_word == "")
{
MessageBox.Show("ERROR");
return "";
}
foreach (var item in Data.filmnames)
{
if (regex.IsMatch(item.ToLower()))
{
return item;
}
}
return "";
}
private void button4_Click(object sender, EventArgs e)
{
textBox6.Text = Searched.Text;
Search2(textBox6.Text);
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void Search2(string searched_word)
{
string pattrern = $"{searched_word}".ToLower();
Regex regex = new Regex(pattrern);
if (searched_word == "")
{
MessageBox.Show("ERROR");
return;
}
foreach (var item in Data.filmnames)
{
if (regex.IsMatch(item.ToLower()))
{
listBox2.Items.Add(item);
}
}
return;
}
} }
public static class Data public static class Data
{ {
public static List<Film> films = new List<Film>(); public static List<Film> films = new List<Film>();
public static List<string> filmnames = new List<string>(); public static List<string> filmnames = new List<string>();
} }
public class Film public class Film

View File

@@ -54,6 +54,9 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>

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>

View File

@@ -0,0 +1 @@
8069502011d0681850e57a53d5a1673222f430a6

View File

@@ -0,0 +1,10 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240527\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb

BIN
20240603/Feladat.pdf Normal file

Binary file not shown.

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34729.46
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApp1", "WindowsFormsApp1\WindowsFormsApp1.csproj", "{3BBA8D35-4251-430B-A103-BF85E8EA8731}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3BBA8D35-4251-430B-A103-BF85E8EA8731}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3BBA8D35-4251-430B-A103-BF85E8EA8731}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3BBA8D35-4251-430B-A103-BF85E8EA8731}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3BBA8D35-4251-430B-A103-BF85E8EA8731}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E914A7CA-8706-410E-A47B-33149094F64E}
EndGlobalSection
EndGlobal

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>

View File

@@ -0,0 +1,187 @@

namespace WindowsFormsApp1
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.listBox1 = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// listBox1
//
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(385, 57);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(403, 381);
this.listBox1.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(21, 25);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(27, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Név";
this.label1.Click += new System.EventHandler(this.label1_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(112, 18);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(233, 20);
this.textBox1.TabIndex = 2;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(21, 71);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Osztály";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(21, 130);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(48, 13);
this.label3.TabIndex = 4;
this.label3.Text = "Első nap";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(21, 186);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(58, 13);
this.label4.TabIndex = 5;
this.label4.Text = "Utolsó nap";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(21, 240);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(79, 13);
this.label5.TabIndex = 6;
this.label5.Text = "Mulasztott órák";
//
// button1
//
this.button1.Location = new System.Drawing.Point(112, 296);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(233, 40);
this.button1.TabIndex = 7;
this.button1.Text = "Hiányzás rögzítése";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(112, 71);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(233, 20);
this.textBox2.TabIndex = 8;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(112, 130);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(233, 20);
this.textBox3.TabIndex = 9;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(112, 183);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(233, 20);
this.textBox4.TabIndex = 10;
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(112, 237);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(233, 20);
this.textBox5.TabIndex = 11;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button1);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.listBox1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox5;
}
}

View File

@@ -0,0 +1,145 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
FileRead();
ListBoxFill();
}
void FileRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\szeptember.csv";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
Data.header = line.Split(';');
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
int elso = Convert.ToInt32(datas[2]);
int utolso = Convert.ToInt32(datas[3]);
int mulasztott = Convert.ToInt32(datas[4]);
Tanulo diak = new Tanulo(datas[0], datas[1], elso, utolso, mulasztott);
Data.tanulok.Add(diak);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
void ListBoxFill()
{
string header = $"{Data.header[0]}\t\t{Data.header[1]}\t{Data.header[2]}\t{Data.header[3]}\t{Data.header[4]}";
listBox1.Items.Add(header);
foreach (var item in Data.tanulok)
{
string pattern = $"{item.nev}\t{item.osztaly}\t{item.elso}\t{item.utolso}\t\t{item.mulasztott}";
listBox1.Items.Add(pattern);
}
}
private void label1_Click(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (IsNotEmpty())
{
int elso, utolso, mulasztas;
if (int.TryParse(textBox3.Text, out elso) && int.TryParse(textBox4.Text, out utolso) && int.TryParse(textBox5.Text, out mulasztas))
{
if (elso > 0 && utolso < 32 && utolso > 0 && elso < 32 && utolso > elso)
{
Tanulo diak = new Tanulo(textBox1.Text, textBox2.Text, elso, utolso, mulasztas);
Data.tanulok.Add(diak);
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\szeptember.csv";
string addedline = $"{diak.nev};{diak.osztaly};{diak.elso};{diak.utolso};{diak.mulasztott}";
using (StreamWriter streamWriter = File.AppendText(path))
{
streamWriter.WriteLine(addedline);
}
MessageBox.Show("Az adatot sikeresen rögzítettük.");
}
else
{
MessageBox.Show("Az utolsó nap nagyobb legyen mint az első!");
}
}
else
{
MessageBox.Show("Hiba. Kérem a mezőkbe a megfelelő adatot szolgáltasson!");
}
}
else
{
MessageBox.Show("Hiba. Valamelyik mezőt nem töltötte ki.");
}
}
bool IsNotEmpty()
{
if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox4.Text != "" && textBox5.Text != "")
{
return true;
}
return false;
}
}
public static class Data
{
public static List<Tanulo> tanulok = new List<Tanulo>();
public static string[] header;
}
public class Tanulo
{
public string nev;
public string osztaly;
public int elso;
public int utolso;
public int mulasztott;
public Tanulo(string nev, string osztaly, int elso, int utolso, int mulasztott)
{
this.nev = nev;
this.osztaly = osztaly;
this.elso = elso;
this.utolso = utolso;
this.mulasztott = mulasztott;
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

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("WindowsFormsApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WindowsFormsApp1")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("3bba8d35-4251-430b-a103-bf85e8ea8731")]
// 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")]

View File

@@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WindowsFormsApp1.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WindowsFormsApp1.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,83 @@
<?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>{3BBA8D35-4251-430B-A103-BF85E8EA8731}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>WindowsFormsApp1</RootNamespace>
<AssemblyName>WindowsFormsApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</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.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

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>

View File

@@ -0,0 +1,102 @@
Név;Osztály;Első nap;Utolsó nap;Mulasztott órák
Balogh Péter;6a;1;1;5
Horváth Judit;5a;1;1;5
Juhász János;6a;1;1;5
Lengyel Krisztina;6b;1;1;6
Török Béla;3b;1;1;6
László Péter;4b;1;1;6
Török Béla;3b;4;4;6
László Péter;4b;4;4;5
Magyar Nóra;8a;4;4;6
Nagy András;5b;4;4;5
Gyüre István;8b;5;5;6
Kiss Tamás;3b;5;5;5
Nagy Eszter;5b;5;5;6
Tóth Ádám;7b;5;5;5
Arnóczki István;4a;6;6;6
Gyüre István;8b;6;6;6
Kiss Tamás;3b;6;6;5
Szabó Dalma;7a;6;6;6
Bakajsza Ferenc;3a;7;7;6
Lippai Tibor;3b;7;7;5
Tóth Tibor;4b;7;7;5
Balogh József;8a;8;8;5
Barabás Attila;8b;8;8;7
Hamza Dezső;1a;8;8;5
Szilágyi Tibor;8b;8;8;5
Fehér Virág;1a;11;11;6
Kis Katalin;8a;11;11;7
Kovács Imre;2a;11;11;6
Novák Sándor;1b;11;11;5
Tirpák Ferenc;2b;11;11;5
Arnóczki István;4a;12;12;6
Bakajsza Ferenc;3a;12;12;6
Lippai Tibor;3b;12;12;5
Nagy Emese;5a;12;12;6
Tóth Tibor;4b;12;12;5
Magyari Ildikó;6b;14;14;5
Sajtos Enikő;6a;14;14;6
Soltész Anna;5b;14;14;5
Bodnár Tímea;6a;15;15;6
Csimbók Ernő;7b;15;15;5
Kropkó Áron;7a;15;15;5
Németh Anna;8a;15;15;7
Balogh József;8a;18;18;5
Barabás Attila;8b;18;18;7
Hamza Dezső;1a;18;18;4
Horváth Gergely;1b;18;18;5
Szilágyi Tibor;8b;18;18;5
Fekete Viktória;3a;19;19;5
Fekete Zsolt;4a;19;19;5
Fodor Éva;4a;19;19;6
Hegedűs Andrea;6b;19;19;6
Katona Ágnes;7b;19;19;7
Lukács Eszter;5a;19;19;5
Nagy Mihály;6b;19;19;6
Pintér Ferenc;3a;19;19;5
Szilágyi Ildikó;3a;19;19;6
Török Viktória;6a;19;19;5
Lengyel Krisztina;6b;20;20;5
Nagy Emese;5a;20;20;5
Soltész Anna;5b;20;20;6
Barabás Attila;8b;21;21;5
Barna Mátyás;8b;21;21;6
Szilágyi Ildikó;3a;21;21;5
Barna Mátyás;8b;22;22;7
Bogdán Anna;5b;22;22;6
Márta Ádám;8b;22;22;6
Somogyi Dániel;5a;22;22;5
Balla Rajmund;2b;25;25;5
Budai Csab;6b;25;25;6
Molnár Hanna;4a;25;25;6
Németh Gergely;7a;25;25;7
Novák Donát;5a;25;25;5
Soós Csenge;4a;25;25;6
Szilágyi Tibor;8b;25;25;5
Balla Rajmund;2b;26;26;5
Katona Ágnes;7b;26;26;5
Kis Katalin;8a;26;26;6
Lakatos Viktória;3a;26;26;6
Szilágyi Ildikó;3a;26;26;5
Török Viktória;6a;26;26;5
Vörös Ágnes;4b;26;26;5
Balla Rajmund;2b;27;27;4
Borbély Csaba;2b;27;27;5
Farkas Nándor;6a;27;27;6
Fekete Noel;3a;27;27;5
Halász Jakab;3b;27;27;6
Kelemen Béla;4a;27;27;6
Kozma Viktor;5a;27;27;5
Molnár Hanna;4a;27;27;6
Tamás Klaudia;4b;27;27;5
Dobos Benedek;8a;28;28;6
Gulyás Veronika;4b;28;28;5
Katona Ágnes;7b;28;28;6
Márton Blanka;8b;28;28;5
Miksa Fruzsina;2b;28;28;5
Szekeres Márió;2b;28;28;4
Kocsis Panna;7a;29;29;5
Molnár Hanna;4a;29;29;5
Szilágyi Ildikó;3a;29;29;5
Török Adél;2a;29;29;6
Szabó Márton;12B;1;25;6
1 Név Osztály Első nap Utolsó nap Mulasztott órák
2 Balogh Péter 6a 1 1 5
3 Horváth Judit 5a 1 1 5
4 Juhász János 6a 1 1 5
5 Lengyel Krisztina 6b 1 1 6
6 Török Béla 3b 1 1 6
7 László Péter 4b 1 1 6
8 Török Béla 3b 4 4 6
9 László Péter 4b 4 4 5
10 Magyar Nóra 8a 4 4 6
11 Nagy András 5b 4 4 5
12 Gyüre István 8b 5 5 6
13 Kiss Tamás 3b 5 5 5
14 Nagy Eszter 5b 5 5 6
15 Tóth Ádám 7b 5 5 5
16 Arnóczki István 4a 6 6 6
17 Gyüre István 8b 6 6 6
18 Kiss Tamás 3b 6 6 5
19 Szabó Dalma 7a 6 6 6
20 Bakajsza Ferenc 3a 7 7 6
21 Lippai Tibor 3b 7 7 5
22 Tóth Tibor 4b 7 7 5
23 Balogh József 8a 8 8 5
24 Barabás Attila 8b 8 8 7
25 Hamza Dezső 1a 8 8 5
26 Szilágyi Tibor 8b 8 8 5
27 Fehér Virág 1a 11 11 6
28 Kis Katalin 8a 11 11 7
29 Kovács Imre 2a 11 11 6
30 Novák Sándor 1b 11 11 5
31 Tirpák Ferenc 2b 11 11 5
32 Arnóczki István 4a 12 12 6
33 Bakajsza Ferenc 3a 12 12 6
34 Lippai Tibor 3b 12 12 5
35 Nagy Emese 5a 12 12 6
36 Tóth Tibor 4b 12 12 5
37 Magyari Ildikó 6b 14 14 5
38 Sajtos Enikő 6a 14 14 6
39 Soltész Anna 5b 14 14 5
40 Bodnár Tímea 6a 15 15 6
41 Csimbók Ernő 7b 15 15 5
42 Kropkó Áron 7a 15 15 5
43 Németh Anna 8a 15 15 7
44 Balogh József 8a 18 18 5
45 Barabás Attila 8b 18 18 7
46 Hamza Dezső 1a 18 18 4
47 Horváth Gergely 1b 18 18 5
48 Szilágyi Tibor 8b 18 18 5
49 Fekete Viktória 3a 19 19 5
50 Fekete Zsolt 4a 19 19 5
51 Fodor Éva 4a 19 19 6
52 Hegedűs Andrea 6b 19 19 6
53 Katona Ágnes 7b 19 19 7
54 Lukács Eszter 5a 19 19 5
55 Nagy Mihály 6b 19 19 6
56 Pintér Ferenc 3a 19 19 5
57 Szilágyi Ildikó 3a 19 19 6
58 Török Viktória 6a 19 19 5
59 Lengyel Krisztina 6b 20 20 5
60 Nagy Emese 5a 20 20 5
61 Soltész Anna 5b 20 20 6
62 Barabás Attila 8b 21 21 5
63 Barna Mátyás 8b 21 21 6
64 Szilágyi Ildikó 3a 21 21 5
65 Barna Mátyás 8b 22 22 7
66 Bogdán Anna 5b 22 22 6
67 Márta Ádám 8b 22 22 6
68 Somogyi Dániel 5a 22 22 5
69 Balla Rajmund 2b 25 25 5
70 Budai Csab 6b 25 25 6
71 Molnár Hanna 4a 25 25 6
72 Németh Gergely 7a 25 25 7
73 Novák Donát 5a 25 25 5
74 Soós Csenge 4a 25 25 6
75 Szilágyi Tibor 8b 25 25 5
76 Balla Rajmund 2b 26 26 5
77 Katona Ágnes 7b 26 26 5
78 Kis Katalin 8a 26 26 6
79 Lakatos Viktória 3a 26 26 6
80 Szilágyi Ildikó 3a 26 26 5
81 Török Viktória 6a 26 26 5
82 Vörös Ágnes 4b 26 26 5
83 Balla Rajmund 2b 27 27 4
84 Borbély Csaba 2b 27 27 5
85 Farkas Nándor 6a 27 27 6
86 Fekete Noel 3a 27 27 5
87 Halász Jakab 3b 27 27 6
88 Kelemen Béla 4a 27 27 6
89 Kozma Viktor 5a 27 27 5
90 Molnár Hanna 4a 27 27 6
91 Tamás Klaudia 4b 27 27 5
92 Dobos Benedek 8a 28 28 6
93 Gulyás Veronika 4b 28 28 5
94 Katona Ágnes 7b 28 28 6
95 Márton Blanka 8b 28 28 5
96 Miksa Fruzsina 2b 28 28 5
97 Szekeres Márió 2b 28 28 4
98 Kocsis Panna 7a 29 29 5
99 Molnár Hanna 4a 29 29 5
100 Szilágyi Ildikó 3a 29 29 5
101 Török Adél 2a 29 29 6
102 Szabó Márton 12B 1 25 6

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 @@
8069502011d0681850e57a53d5a1673222f430a6

View File

@@ -0,0 +1,10 @@
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.AssemblyReference.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240603\WindowsFormsApp1\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb

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>

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>{A3C42417-ACFF-40C0-9195-7287F201E9F6}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp1</RootNamespace>
<AssemblyName>ConsoleApp1</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>

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34408.163
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{A3C42417-ACFF-40C0-9195-7287F201E9F6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A3C42417-ACFF-40C0-9195-7287F201E9F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3C42417-ACFF-40C0-9195-7287F201E9F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3C42417-ACFF-40C0-9195-7287F201E9F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3C42417-ACFF-40C0-9195-7287F201E9F6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {130F6D27-01E8-4FAB-B8E4-4EC359F9BB1B}
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,159 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Security.Permissions;
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
DataRead();
int num = Feladat3();
Console.WriteLine(num);
int nepsuruseg = Feladat4();
Console.WriteLine(nepsuruseg);
int kinatobbmintindiaaaaa = Feladat5();
Console.WriteLine(kinatobbmintindiaaaaa);
string harmadik = Feladat6();
Console.WriteLine(harmadik);
Feladat7();
Console.ReadLine();
}
public static void DataRead()
{
string path = "adatok-utf8.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string orszagnev = datas[0];
int terulet = Convert.ToInt32(datas[1]);
string nepesseg = datas[2];
int Nepesseg;
bool IsNumber = Int32.TryParse(nepesseg, out Nepesseg);
if (!IsNumber)
{
string asd = nepesseg.Replace("g", "0000");
Nepesseg = Convert.ToInt32(asd);
}
int fovarosNepesseg = Convert.ToInt32(datas[4]);
Orszag orszag = new Orszag(orszagnev, terulet, Nepesseg, datas[3], fovarosNepesseg);
Data.orszagok.Add(orszag);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
public static int Feladat3()
{
return Data.orszagok.Count;
}
public static int FindCountry(string country) {
int i = 0;
while (Data.orszagok[i].Orszagnev != country && i <= Data.orszagok.Count)
{
i++;
}
return i;
}
public static int Feladat4() {
int a = FindCountry("Kína");
return Data.orszagok[a].Nepesseg / Data.orszagok[a].Terulet;
}
public static int Feladat5() {
int india = FindCountry("India");
int kina = FindCountry("Kína");
return Data.orszagok[kina].Nepesseg - Data.orszagok[india].Nepesseg;
}
public static string Feladat6()
{
List<Orszag> asd = Data.orszagok.OrderBy(x => x.Nepesseg).ToList();
return asd[asd.Count - 3].Orszagnev;
}
public static void Feladat7()
{
foreach (var item in Data.orszagok)
{
if (item.FovarosiKoncentracio)
{
Console.WriteLine($"{item.Orszagnev}, {item.Fovaros}");
}
}
}
}
public static class Data
{
public static List<Orszag> orszagok = new List<Orszag>();
}
public class Orszag
{
public string Orszagnev { get; private set; }
public int Terulet { get; private set; }
public int Nepesseg { get; private set; }
public string Fovaros { get; private set; }
public int FovarosNepesseg { get; private set; }
public bool FovarosiKoncentracio { get; private set; }
public Orszag(string orszagnev, int terulet, int nepesseg, string fovaros, int fovarosNepesseg)
{
Orszagnev = orszagnev;
Terulet = terulet;
Nepesseg = nepesseg;
Fovaros = fovaros;
FovarosNepesseg = fovarosNepesseg * 1000;
FovarosiKoncentracio = KoncentraltFovaros(FovarosNepesseg, Nepesseg);
}
public bool KoncentraltFovaros(int fovarosNepesseg, int nepesseg)
{
if (fovarosNepesseg >= nepesseg * 0.3)
{
return true;
}
else
{
return false;
}
}
}
}

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("ConsoleApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApp1")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("a3c42417-acff-40c0-9195-7287f201e9f6")]
// 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,50 @@
Ország;Terület;Népesség;Főváros;Főváros népessége
Görögország;132000;1064g;Athén;3154
Románia;238400;1912g;Bukarest;1812
Ausztria;83900;8960000;Bécs;1915
Lengyelország;312700;3775g;Varsó;1776
Belgium;30500;11590000;Brüsszel;2065
Bulgária;110400;6880000;Szófia;1277
Ciprus;9300;900000;Nicosia;270
Csehország;78900;10510000;Prága;1299
Dánia;42900;5860000;Koppenhága;1334
Észtország;45400;1330000;Tallinn;441
Finnország;336900;5540000;Helsinki;1292
Franciaország;551500;67750000;Párizs;10958
Hollandia;41500;17530000;Amszterdam;1140
Horvátország;56600;3960000;Zágráb;685
Írország;69800;5030000;Dublin;1215
Lettország;64600;1880000;Riga;634
Litvánia;65300;2800000;Vilnius;538
Luxemburg;2600;640000;Luxembourg;120
Magyarország;93000;9710000;Budapest;1764
Málta;300;520000;Valletta;213
Németország;357600;83200000;Berlin;3557
Olaszország;302100;59110000;Róma;4234
Portugália;92200;10330000;Lisszabon;2942
Spanyolország;506000;47420000;Madrid;6559
Svédország;438600;10420000;Stockholm;1608
Szlovákia;49000;5450000;Pozsony;433
Szlovénia;20300;2110000;Ljubljana;287
Egyesült Királyság;244400;67330000;London;9177
Izland;103000;370000;Reykjavík;216
Észak-Macedónia;25700;1950000;Szkopje;590
Montenegró;13900;620000;Podgorica;177
Norvégia;323800;5410000;Osló;1027
Oroszország;17098200;143450000;Moszkva;12476
Svájc;41300;8700000;Bern;426
Szerbia;88400;6830000;Belgrád;1394
Törökország;783600;84150000;Ankara;5018
India;3287300;1393410000;Új-Delhi;29399
Izrael;22100;9360000;Jeruzsálem;919
Japán;377900;125680000;Tokió;37435
Kína;9600000;1412360000;Peking;20036
Koreai Köztársaság;100400;51740000;Szöul;9962
Dél-afrikai Köztársaság;1221000;60040000;Pretoriap;2473
Egyiptom;1002000;104260000;Kairó;20485
Brazília;8510300;213990000;Brasilia;4559
Egyesült Államok;9833500;331890000;Washington, D.C.;5265
Kanada;9984700;38250000;Ottawa;1378
Mexikó;1964400;130260000;Mexikóváros;21672
Ausztrália;7692000;25740000;Canberra;453
Új-Zéland;268100;5120000;Wellington;413

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 @@
25f359d3fd7d560a1dec87ab383b84f91627954af157e6d29c6e8f4a1e97b265

View File

@@ -0,0 +1,7 @@
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\bin\Debug\ConsoleApp1.exe
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\obj\Debug\ConsoleApp1.exe
E:\Házi\Programozás\C#\Suli\ProgaOra\20240904\ConsoleApp1\obj\Debug\ConsoleApp1.pdb

Binary file not shown.

Binary file not shown.

BIN
20240904/Gyakorlás.pdf Normal file

Binary file not shown.

50
20240904/adatok-utf8.txt Normal file
View File

@@ -0,0 +1,50 @@
Ország;Terület;Népesség;Főváros;Főváros népessége
Görögország;132000;1064g;Athén;3154
Románia;238400;1912g;Bukarest;1812
Ausztria;83900;8960000;Bécs;1915
Lengyelország;312700;3775g;Varsó;1776
Belgium;30500;11590000;Brüsszel;2065
Bulgária;110400;6880000;Szófia;1277
Ciprus;9300;900000;Nicosia;270
Csehország;78900;10510000;Prága;1299
Dánia;42900;5860000;Koppenhága;1334
Észtország;45400;1330000;Tallinn;441
Finnország;336900;5540000;Helsinki;1292
Franciaország;551500;67750000;Párizs;10958
Hollandia;41500;17530000;Amszterdam;1140
Horvátország;56600;3960000;Zágráb;685
Írország;69800;5030000;Dublin;1215
Lettország;64600;1880000;Riga;634
Litvánia;65300;2800000;Vilnius;538
Luxemburg;2600;640000;Luxembourg;120
Magyarország;93000;9710000;Budapest;1764
Málta;300;520000;Valletta;213
Németország;357600;83200000;Berlin;3557
Olaszország;302100;59110000;Róma;4234
Portugália;92200;10330000;Lisszabon;2942
Spanyolország;506000;47420000;Madrid;6559
Svédország;438600;10420000;Stockholm;1608
Szlovákia;49000;5450000;Pozsony;433
Szlovénia;20300;2110000;Ljubljana;287
Egyesült Királyság;244400;67330000;London;9177
Izland;103000;370000;Reykjavík;216
Észak-Macedónia;25700;1950000;Szkopje;590
Montenegró;13900;620000;Podgorica;177
Norvégia;323800;5410000;Osló;1027
Oroszország;17098200;143450000;Moszkva;12476
Svájc;41300;8700000;Bern;426
Szerbia;88400;6830000;Belgrád;1394
Törökország;783600;84150000;Ankara;5018
India;3287300;1393410000;Új-Delhi;29399
Izrael;22100;9360000;Jeruzsálem;919
Japán;377900;125680000;Tokió;37435
Kína;9600000;1412360000;Peking;20036
Koreai Köztársaság;100400;51740000;Szöul;9962
Dél-afrikai Köztársaság;1221000;60040000;Pretoriap;2473
Egyiptom;1002000;104260000;Kairó;20485
Brazília;8510300;213990000;Brasilia;4559
Egyesült Államok;9833500;331890000;Washington, D.C.;5265
Kanada;9984700;38250000;Ottawa;1378
Mexikó;1964400;130260000;Mexikóváros;21672
Ausztrália;7692000;25740000;Canberra;453
Új-Zéland;268100;5120000;Wellington;413

28
20240904/csharp.txt Normal file
View File

@@ -0,0 +1,28 @@
class Orszag
{
public string Orszagnev { get; private set; }
public int Terulet { get; private set; }
public int Nepesseg { get; private set; }
public string Fovaros { get; private set; }
public int FovarosNepesseg { get; private set; }
public Orszag(string orszagnev, int terulet, int nepesseg, string fovaros, int fovarosNepesseg)
{
Orszagnev = orszagnev;
Terulet = terulet;
Nepesseg = nepesseg;
Fovaros = fovaros;
FovarosNepesseg = fovarosNepesseg;
}
public Orszag(string sor)
{
// Ebben a konstruktorban is elvégezheti az adatsor felbontását!
// Ha nem ezt választja, akkor törölje ezt a konstruktort!
}
public override string ToString()
{
return "";
}
}

Binary file not shown.

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34729.46
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F0D1799E-4A3B-4CC3-95D2-BB9DAE843EDD}
EndGlobalSection
EndGlobal

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>

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>{230ACBCE-F4C9-441E-976C-3BCA4E6595D5}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ConsoleApp1</RootNamespace>
<AssemblyName>ConsoleApp1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</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>

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 ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
}
public static void DataRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\adatok-utf8.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string orszag = datas[0];
int terulet = Convert.ToInt32(datas[1]);
int i_nepesseg;
string nepesseg = datas[2];
bool IsNum = Int32.TryParse(nepesseg, out i_nepesseg);
if (!IsNum)
{
nepesseg.Replace("g", "0000");
i_nepesseg = Convert.ToInt32(nepesseg);
}
}
streamReader.Close();
fileStream.Close();
}
}
public static class Data
{
public static List<Orszag> orszagok = new List<Orszag>();
}
public class Orszag
{
public string Orszagnev { get; private set; }
public int Terulet { get; private set; }
public int Nepesseg { get; private set; }
public string Fovaros { get; private set; }
public int FovarosNepesseg { get; private set; }
public bool FovarosiKoncentracio { get; set; }
public Orszag(string orszagnev, int terulet, int nepesseg, string fovaros, int fovarosNepesseg)
{
Orszagnev = orszagnev;
Terulet = terulet;
Nepesseg = nepesseg;
Fovaros = fovaros;
FovarosNepesseg = fovarosNepesseg * 1000;
}
}
}

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("ConsoleApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApp1")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("230acbce-f4c9-441e-976c-3bca4e6595d5")]
// 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")]

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

Binary file not shown.

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34729.46
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fizetes", "Fizetes\Fizetes.csproj", "{2927D585-DD8D-4010-94C3-F73C3F228ACD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2927D585-DD8D-4010-94C3-F73C3F228ACD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2DB21D78-A314-40EB-8FFC-EEFCB70E4C36}
EndGlobalSection
EndGlobal

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>

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>{2927D585-DD8D-4010-94C3-F73C3F228ACD}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Fizetes</RootNamespace>
<AssemblyName>Fizetes</AssemblyName>
<TargetFrameworkVersion>v4.7.2</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>

View File

@@ -0,0 +1,177 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Fizetes
{
class Program
{
static void Main(string[] args)
{
DataRead();
Feladat3();
Feladat4();
Feladat5();
Feladat6();
Feladat7();
Console.ReadLine();
}
public static void Feladat3()
{
Console.WriteLine(Data.munkasok.Count);
}
public static void Feladat4()
{
int atlagber = AtlagBer();
Console.WriteLine($"A 2020-as átlagbérek: {atlagber} ezer Forint");
}
public static int AtlagBer()
{
int dolgozoknum = Data.munkasok.Count;
int dolgozokberSZUM = DolgozokBerSZUM();
return (dolgozokberSZUM / dolgozoknum) / 1000;
}
public static int DolgozokBerSZUM()
{
int szum = 0;
foreach (var item in Data.munkasok)
{
szum += item.Ber;
}
return szum;
}
public static void Feladat5()
{
Console.WriteLine("Kérem a részleg nevét: ");
}
public static void Feladat6()
{
string reszleg = Console.ReadLine();
int legjobbankereso_index = LegjobbanKereso_index(reszleg);
if (legjobbankereso_index == -1)
{
Console.WriteLine("A megadott részleg nem létezik a cégnél!");
}
else
{
Console.WriteLine($"Név: {Data.munkasok[legjobbankereso_index].Nev}");
Console.WriteLine($"Nem: {Data.munkasok[legjobbankereso_index].Nem}");
Console.WriteLine($"Belépés: {Data.munkasok[legjobbankereso_index].Belepes}");
Console.WriteLine($"Bér: {Data.munkasok[legjobbankereso_index].Ber}");
}
}
public static int LegjobbanKereso_index(string reszleg)
{
int legnagyobbBer = 0;
int legnagyobb_index = -1;
for (int i = 0; i < Data.munkasok.Count; i++)
{
if (Data.munkasok[i].Ber > legnagyobbBer && Data.munkasok[i].Reszleg == reszleg)
{
legnagyobbBer = Data.munkasok[i].Ber;
legnagyobb_index = i;
}
}
return legnagyobb_index;
}
public static void Feladat7()
{
List<string> reszlegek = new List<string>();
foreach (var item in Data.munkasok)
{
if (!reszlegek.Contains(item.Reszleg))
{
reszlegek.Add(item.Reszleg);
}
}
int[] reszleg_db = new int[reszlegek.Count];
for (int i = 0; i < reszlegek.Count; i++)
{
for (int j = 0; j < Data.munkasok.Count; j++)
{
if (reszlegek[i] == Data.munkasok[j].Reszleg)
{
reszleg_db[i]++;
}
}
}
for (int i = 0; i < reszlegek.Count; i++)
{
Console.WriteLine($"{reszlegek[i]} - {reszleg_db[i]} Fő");
}
}
public static void DataRead()
{
string path = @"C:\Users\szabomarton\Desktop\C#\ProgaOra\20240905\berek2020.txt";
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
StreamReader streamReader = new StreamReader(fileStream);
string line = streamReader.ReadLine();
line = streamReader.ReadLine();
while (line != null)
{
string[] datas = line.Split(';');
string nev = datas[0];
string nem = datas[1];
string reszleg = datas[2];
int belepes = Convert.ToInt32(datas[3]);
int ber = Convert.ToInt32(datas[4]);
Munkas munkas = new Munkas(nev, nem, reszleg, belepes, ber);
Data.munkasok.Add(munkas);
line = streamReader.ReadLine();
}
streamReader.Close();
fileStream.Close();
}
}
public static class Data
{
public static List<Munkas> munkasok = new List<Munkas>();
}
public class Munkas
{
public string Nev { get; private set; }
public string Nem { get; private set; }
public string Reszleg { get; private set; }
public int Belepes { get; private set; }
public int Ber { get; private set; }
public Munkas(string nev, string nem, string reszleg, int belepes, int ber)
{
Nev = nev;
Nem = nem;
Reszleg = reszleg;
Belepes = belepes;
Ber = ber;
}
}
}

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("Fizetes")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Fizetes")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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("2927d585-dd8d-4010-94c3-f73c3f228acd")]
// 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.7.2" />
</startup>
</configuration>

Binary file not shown.

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