commit 2
This commit is contained in:
commit
bcd8982b11
BIN
20240912_doga/Dolgozat.pdf
Normal file
BIN
20240912_doga/Dolgozat.pdf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\",
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|s:\\programoz\u00E1s_dolgozat\\szab\u00F3m\u00E1rton_20240912\\maratonvaltogui\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240912_doga\\maratonvaltogui\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|solutionrelative:maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
|
||||
"RelativeMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|solutionrelative:maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
|
||||
}
|
||||
],
|
||||
|
@ -24,11 +24,11 @@
|
|||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Form1.cs",
|
||||
"DocumentMoniker": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeDocumentMoniker": "MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeToolTip": "MaratonValtoGUI\\Form1.cs",
|
||||
"ViewState": "AgIAAFEAAAAAAAAAAAAAwGMAAAAjAAAAAAAAAA==",
|
||||
"ViewState": "AgIAAF4AAAAAAAAAAAAawGIAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-12T07:43:09.212Z",
|
||||
"EditorCaption": ""
|
||||
|
@ -37,11 +37,13 @@
|
|||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Form1.cs [Design]",
|
||||
"DocumentMoniker": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeDocumentMoniker": "MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\Dolgozat\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"RelativeToolTip": "MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-12T07:39:37.232Z"
|
||||
"WhenOpened": "2024-09-12T07:39:37.232Z",
|
||||
"EditorCaption": " [Design]"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\",
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|s:\\programoz\u00E1s_dolgozat\\szab\u00F3m\u00E1rton_20240912\\maratonvaltogui\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|c:\\users\\szabomarton\\desktop\\progaora\\20240912_doga\\maratonvaltogui\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|solutionrelative:maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
|
||||
"AbsoluteMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
|
||||
"RelativeMoniker": "D:0:0:{F1F2A2F9-D38C-404A-AC20-237C68980382}|MaratonValtoGUI\\MaratonValtoGUI.csproj|solutionrelative:maratonvaltogui\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
|
||||
}
|
||||
],
|
||||
|
@ -24,11 +24,11 @@
|
|||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Form1.cs",
|
||||
"DocumentMoniker": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeDocumentMoniker": "MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeToolTip": "MaratonValtoGUI\\Form1.cs",
|
||||
"ViewState": "AgIAAFEAAAAAAAAAAAAAwGMAAAAjAAAAAAAAAA==",
|
||||
"ViewState": "AgIAAF4AAAAAAAAAAAAawGIAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-12T07:43:09.212Z",
|
||||
"EditorCaption": ""
|
||||
|
@ -37,11 +37,13 @@
|
|||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Form1.cs [Design]",
|
||||
"DocumentMoniker": "S:\\Programoz\u00E1s_dolgozat\\Szab\u00F3M\u00E1rton_20240912\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs",
|
||||
"RelativeDocumentMoniker": "MaratonValtoGUI\\Form1.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\Dolgozat\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\ProgaOra\\20240912_doga\\MaratonValtoGUI\\MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"RelativeToolTip": "MaratonValtoGUI\\Form1.cs [Design]",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-12T07:39:37.232Z"
|
||||
"WhenOpened": "2024-09-12T07:39:37.232Z",
|
||||
"EditorCaption": " [Design]"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -20,12 +20,8 @@ namespace MaratonValtoGUI
|
|||
|
||||
public void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
Data.eredmenyek = LoadFromCsv("maratonvalto.csv");
|
||||
|
||||
foreach (var item in Data.eredmenyek)
|
||||
{
|
||||
listBox1.Items.Add(item.Versenyzo.Fnev);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -33,6 +29,17 @@ namespace MaratonValtoGUI
|
|||
private void megnyitásToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
//string filepath = OpenFileDialog();
|
||||
OpenFileDialog openFileDialog = new OpenFileDialog();
|
||||
openFileDialog.ShowDialog();
|
||||
|
||||
string path = openFileDialog.FileName;
|
||||
|
||||
Data.eredmenyek = LoadFromCsv(path);
|
||||
|
||||
foreach (var item in Data.eredmenyek)
|
||||
{
|
||||
listBox1.Items.Add(item.Versenyzo.Fnev);
|
||||
}
|
||||
}
|
||||
|
||||
private void kiléToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -8,3 +8,13 @@ C:\Users\szabomarton\Desktop\C#\Dolgozat\MaratonValtoGUI\MaratonValtoGUI\obj\Deb
|
|||
C:\Users\szabomarton\Desktop\C#\Dolgozat\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\Dolgozat\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.exe
|
||||
C:\Users\szabomarton\Desktop\C#\Dolgozat\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.pdb
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\bin\Debug\MaratonValtoGUI.exe.config
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\bin\Debug\MaratonValtoGUI.exe
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\bin\Debug\MaratonValtoGUI.pdb
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.csproj.AssemblyReference.cache
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.Form1.resources
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.Properties.Resources.resources
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.csproj.GenerateResource.cache
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.exe
|
||||
C:\Users\szabomarton\Desktop\ProgaOra\20240912_doga\MaratonValtoGUI\MaratonValtoGUI\obj\Debug\MaratonValtoGUI.pdb
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
20240919/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
BIN
20240919/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
Binary file not shown.
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240919\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAADEAAAAAAAAAAAAcwEMAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-19T06:52:49.159Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
41
20240919/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
41
20240919/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240919\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAADEAAAAAAAAAAAAcwFwAAAAyAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-19T06:52:49.159Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
25
20240919/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20240919/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35222.181
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {AEBD4DC6-C386-4383-A868-204B9E548812}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
6
20240919/ConsoleApp1/ConsoleApp1/App.config
Normal file
6
20240919/ConsoleApp1/ConsoleApp1/App.config
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
53
20240919/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
53
20240919/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{36A44E1B-CB62-446B-86E4-AA211A1C4DFD}</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>
|
131
20240919/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
131
20240919/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,131 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
using System.Diagnostics.Tracing;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
DataRead("C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240919\\termekek.csv", ';');
|
||||
//Feladat1();
|
||||
Feladat2();
|
||||
Feladat3();
|
||||
Feladat4();
|
||||
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
static void Feladat1()
|
||||
{
|
||||
int fizetes_sum = Fizetes_SUM(Data.alkalmazottak);
|
||||
double fizetes_avg = Fizetes_AVG(Data.alkalmazottak);
|
||||
Console.WriteLine($"A fizetések összege: {fizetes_sum}");
|
||||
Console.WriteLine($"A fizetések Átlaga: {fizetes_avg:F2}");
|
||||
}
|
||||
|
||||
static int Fizetes_SUM(List<Alkalmazott> T) {
|
||||
var result = T.Select(x => x.fizetes);
|
||||
return result.Sum();
|
||||
}
|
||||
|
||||
static double Fizetes_AVG(List<Alkalmazott> T)
|
||||
{
|
||||
IEnumerable<int> asd = T.Select(x => x.fizetes);
|
||||
return asd.Average();
|
||||
}
|
||||
|
||||
static void Feladat2()
|
||||
{
|
||||
foreach (var item in Data.raktar)
|
||||
{
|
||||
Console.WriteLine($"{item.nev}");
|
||||
}
|
||||
}
|
||||
|
||||
static void Feladat3()
|
||||
{
|
||||
var result = Data.raktar.GroupBy(y => y.kategoria).Select(x => new {x.Key, darab = x.Count()});
|
||||
foreach (var item in result)
|
||||
{
|
||||
Console.WriteLine($"{item.Key} {item.darab}");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void Feladat4()
|
||||
{
|
||||
var legolcsobb = Data.raktar.OrderBy(x => x.ar).Select(y => new {y.nev, y.ar});
|
||||
Console.WriteLine(legolcsobb);
|
||||
}
|
||||
|
||||
|
||||
static void DataRead(string path, char splitchar)
|
||||
{
|
||||
using (StreamReader streamReader = new StreamReader(path))
|
||||
{
|
||||
string line = streamReader.ReadLine();
|
||||
line = streamReader.ReadLine();
|
||||
while (line != null)
|
||||
{
|
||||
string[] datas = line.Split(splitchar);
|
||||
|
||||
TermekAdd(datas);
|
||||
|
||||
line = streamReader.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void TermekAdd(string[] datas)
|
||||
{
|
||||
Termek termek = new Termek(datas[0], datas[1], Int32.Parse(datas[2]));
|
||||
Data.raktar.Add(termek);
|
||||
}
|
||||
|
||||
static void AlkalmazottAdd(string[] datas)
|
||||
{
|
||||
Alkalmazott alkalmazott = new Alkalmazott(datas[0], Int32.Parse(datas[1]));
|
||||
Data.alkalmazottak.Add(alkalmazott);
|
||||
}
|
||||
}
|
||||
|
||||
public class Alkalmazott
|
||||
{
|
||||
public string nev;
|
||||
public int fizetes;
|
||||
|
||||
public Alkalmazott(string Nev, int Fizetes)
|
||||
{
|
||||
nev = Nev;
|
||||
fizetes = Fizetes;
|
||||
}
|
||||
}
|
||||
|
||||
public class Termek
|
||||
{
|
||||
public string nev;
|
||||
public string kategoria;
|
||||
public int ar;
|
||||
|
||||
public Termek(string Nev, string Kategoria, int Ar)
|
||||
{
|
||||
nev = Nev;
|
||||
kategoria = Kategoria;
|
||||
ar = Ar;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Data
|
||||
{
|
||||
public static List<Alkalmazott> alkalmazottak = new List<Alkalmazott> ();
|
||||
public static List<Termek> raktar = new List<Termek> ();
|
||||
}
|
||||
}
|
33
20240919/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
33
20240919/ConsoleApp1/ConsoleApp1/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
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("36a44e1b-cb62-446b-86e4-aa211a1c4dfd")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
BIN
20240919/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
BIN
20240919/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
BIN
20240919/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
BIN
20240919/ConsoleApp1/ConsoleApp1/bin/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
137ddb1975586287657f37337b64d051167bb6a147915d9fb5b8eb94b1093509
|
|
@ -0,0 +1,7 @@
|
|||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240919\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
BIN
20240919/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
BIN
20240919/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.exe
Normal file
Binary file not shown.
BIN
20240919/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
BIN
20240919/ConsoleApp1/ConsoleApp1/obj/Debug/ConsoleApp1.pdb
Normal file
Binary file not shown.
Binary file not shown.
18
20240919/alkalmazottak.txt
Normal file
18
20240919/alkalmazottak.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
Név,Fizetés
|
||||
Kiss Péter,300000
|
||||
Nagy László,400000
|
||||
Szabó Erika,350000
|
||||
Tóth Gábor,500000
|
||||
Molnár András,280000
|
||||
Varga Judit,450000
|
||||
Farkas Béla,370000
|
||||
Balogh Ágnes,330000
|
||||
Kovács Dóra,380000
|
||||
Boros Anikó,410000
|
||||
Lukács Gábor,430000
|
||||
Horváth István,295000
|
||||
Vörös Anna,310000
|
||||
Veres Katalin,470000
|
||||
Fekete Csaba,440000
|
||||
Fehér Levente,360000
|
||||
Simon László,300000
|
18
20240919/termekek.csv
Normal file
18
20240919/termekek.csv
Normal file
|
@ -0,0 +1,18 @@
|
|||
Név;Kategória;Ár
|
||||
Laptop;Elektronikai eszközök;900000
|
||||
Egér;Elektronikai eszközök;2000
|
||||
Szék;Bútorok;50000
|
||||
Asztal;Bútorok;150000
|
||||
Ceruza;Irodai eszközök;200
|
||||
Nyomtató;Elektronikai eszközök;30000
|
||||
Toll;Irodai eszközök;300
|
||||
Polc;Bútorok;10000
|
||||
Lámpa;Bútorok;7000
|
||||
Hűtőszekrény;Elektronikai eszközök;120000
|
||||
Tűzőgép;Irodai eszközök;800
|
||||
Számítógép;Elektronikai eszközök;150000
|
||||
Fotel;Bútorok;20000
|
||||
Papír;Irodai eszközök;100
|
||||
Tányér;Konyhai eszközök;5000
|
||||
Bögre;Konyhai eszközök;600
|
||||
Serpenyő;Konyhai eszközök;4000
|
|
Binary file not shown.
Binary file not shown.
BIN
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/.futdcache.v2
Normal file
BIN
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
BIN
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/.suo
Normal file
Binary file not shown.
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240920\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 1,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAIAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-20T07:54:27.77Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
41
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
41
20240920/ConsoleApp1/.vs/ConsoleApp1/v17/DocumentLayout.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240920\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 1,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAACUAAAAAAAAAAAA9wEkAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-20T07:54:27.77Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
20240920/ConsoleApp1/ConsoleApp1.sln
Normal file
25
20240920/ConsoleApp1/ConsoleApp1.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35303.130
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{712B1E33-47B9-442C-B7A2-A5DD3FCFA1DB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {30A6F478-6ED6-4558-A314-7E1BB7A9E881}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
10
20240920/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
10
20240920/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj
Normal file
|
@ -0,0 +1,10 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
74
20240920/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
74
20240920/ConsoleApp1/ConsoleApp1/Program.cs
Normal file
|
@ -0,0 +1,74 @@
|
|||
using System.IO;
|
||||
|
||||
Main();
|
||||
|
||||
static void Main()
|
||||
{
|
||||
DataRead();
|
||||
Console.WriteLine($"Ötven pontnál többet elérők száma: {OtvenFelettiek(Data.tanulok)}");
|
||||
Console.WriteLine($"A pontok átlaga: {Atlag(Data.tanulok):F2}");
|
||||
List<Tanulo> legjobbak = LegjobbHarom(Data.tanulok);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Console.WriteLine($"{legjobbak[i].Nev}, {legjobbak[i].Pont}");
|
||||
}
|
||||
}
|
||||
|
||||
static int OtvenFelettiek(List<Tanulo> list)
|
||||
{
|
||||
var result = list.Where(x => x.Pont > 50).Count();
|
||||
return result;
|
||||
}
|
||||
|
||||
static double Atlag(List<Tanulo> list)
|
||||
{
|
||||
var result = list.Average(x => x.Pont);
|
||||
return result;
|
||||
}
|
||||
|
||||
static List<Tanulo> LegjobbHarom(List<Tanulo> list)
|
||||
{
|
||||
//List<Tanulo> legjobbharom = list.OrderByDescending(list => list.Pont).ToList();
|
||||
List<Tanulo> legjobbharom = (from tanulo in list
|
||||
orderby tanulo.Pont descending
|
||||
select tanulo).ToList();
|
||||
return legjobbharom;
|
||||
}
|
||||
|
||||
static void DataRead()
|
||||
{
|
||||
string path = "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\tanulok.txt";
|
||||
using (StreamReader streamReader = new StreamReader(path))
|
||||
{
|
||||
string line = streamReader.ReadLine();
|
||||
line = streamReader.ReadLine();
|
||||
|
||||
while (line != null)
|
||||
{
|
||||
string[] datas = line.Split(',');
|
||||
Tanulo tanulo = new Tanulo(datas[0], Convert.ToInt32(datas[1]));
|
||||
Data.tanulok.Add(tanulo);
|
||||
line = streamReader.ReadLine();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Tanulo
|
||||
{
|
||||
public string Nev;
|
||||
public int Pont;
|
||||
|
||||
public Tanulo(string nev, int pont)
|
||||
{
|
||||
Nev = nev;
|
||||
Pont = pont;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Data
|
||||
{
|
||||
public static List<Tanulo> tanulok = new List<Tanulo>();
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"ConsoleApp1/1.0.0": {
|
||||
"runtime": {
|
||||
"ConsoleApp1.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"ConsoleApp1/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
|
||||
"projectName": "ConsoleApp1",
|
||||
"projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
|
||||
"packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\szabomarton\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\szabomarton\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
|
@ -0,0 +1,23 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+82fc6b674fd1265407cef9381f915f8fb7df93c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
|
@ -0,0 +1 @@
|
|||
aa67c41760e97d205100aee5a50d70bd24baabce8f916061a9734dff6619552c
|
|
@ -0,0 +1,13 @@
|
|||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = ConsoleApp1
|
||||
build_property.ProjectDir = C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
|
@ -0,0 +1,8 @@
|
|||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
7f1c35188bf0c59fbea1d24b1d43dc1963ee3d5043bdfb42e9b9890b98c38178
|
|
@ -0,0 +1,14 @@
|
|||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.AssemblyInfoInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.AssemblyInfo.cs
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.deps.json
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.runtimeconfig.json
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\bin\Debug\net8.0\ConsoleApp1.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\refint\ConsoleApp1.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ConsoleApp1.genruntimeconfig.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp1\ConsoleApp1\obj\Debug\net8.0\ref\ConsoleApp1.dll
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
9b6d263268ab2281cec2217d9f91c5311410da59c6ca98faa5bac969266aab9e
|
Binary file not shown.
BIN
20240920/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/apphost.exe
Normal file
BIN
20240920/ConsoleApp1/ConsoleApp1/obj/Debug/net8.0/apphost.exe
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
73
20240920/ConsoleApp1/ConsoleApp1/obj/project.assets.json
Normal file
73
20240920/ConsoleApp1/ConsoleApp1/obj/project.assets.json
Normal file
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\szabomarton\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
|
||||
"projectName": "ConsoleApp1",
|
||||
"projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
|
||||
"packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8
20240920/ConsoleApp1/ConsoleApp1/obj/project.nuget.cache
Normal file
8
20240920/ConsoleApp1/ConsoleApp1/obj/project.nuget.cache
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "N3V9pefyNFs=",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp1\\ConsoleApp1\\ConsoleApp1.csproj",
|
||||
"expectedPackageFiles": [],
|
||||
"logs": []
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/.futdcache.v2
Normal file
BIN
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/.futdcache.v2
Normal file
Binary file not shown.
BIN
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/.suo
Normal file
BIN
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/.suo
Normal file
Binary file not shown.
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{07865C0D-EE88-4AE8-8F14-75DE240A66E7}|ConsoleApp2\\ConsoleApp2.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240920\\consoleapp2\\consoleapp2\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{07865C0D-EE88-4AE8-8F14-75DE240A66E7}|ConsoleApp2\\ConsoleApp2.csproj|solutionrelative:consoleapp2\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp2\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp2\\Program.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAABCAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-20T09:02:47.555Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
41
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/DocumentLayout.json
Normal file
41
20240920/ConsoleApp2/.vs/ConsoleApp2/v17/DocumentLayout.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{07865C0D-EE88-4AE8-8F14-75DE240A66E7}|ConsoleApp2\\ConsoleApp2.csproj|c:\\users\\szabomarton\\desktop\\c#\\progaora\\20240920\\consoleapp2\\consoleapp2\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{07865C0D-EE88-4AE8-8F14-75DE240A66E7}|ConsoleApp2\\ConsoleApp2.csproj|solutionrelative:consoleapp2\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp2\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp2\\Program.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAlAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2024-09-20T09:02:47.555Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{cce594b6-0c39-4442-ba28-10c64ac7e89f}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
25
20240920/ConsoleApp2/ConsoleApp2.sln
Normal file
25
20240920/ConsoleApp2/ConsoleApp2.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35303.130
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2\ConsoleApp2.csproj", "{07865C0D-EE88-4AE8-8F14-75DE240A66E7}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{07865C0D-EE88-4AE8-8F14-75DE240A66E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{07865C0D-EE88-4AE8-8F14-75DE240A66E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{07865C0D-EE88-4AE8-8F14-75DE240A66E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{07865C0D-EE88-4AE8-8F14-75DE240A66E7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {C623C855-ECC2-437F-8EBD-DA3838B10898}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
10
20240920/ConsoleApp2/ConsoleApp2/ConsoleApp2.csproj
Normal file
10
20240920/ConsoleApp2/ConsoleApp2/ConsoleApp2.csproj
Normal file
|
@ -0,0 +1,10 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
63
20240920/ConsoleApp2/ConsoleApp2/Program.cs
Normal file
63
20240920/ConsoleApp2/ConsoleApp2/Program.cs
Normal file
|
@ -0,0 +1,63 @@
|
|||
DataRead();
|
||||
Varos legmelegebb = Legmelegebb();
|
||||
Console.WriteLine($"{legmelegebb.Nev} {legmelegebb.Homerseklet}");
|
||||
Varos leghidegebb = Leghidegebb();
|
||||
Console.WriteLine($"{leghidegebb.Nev} {leghidegebb.Homerseklet}");
|
||||
double atlag = Atlag();
|
||||
Console.WriteLine($"Átlag hőmérséklet: {atlag:F2}");
|
||||
//list városok where homerseklet > 20
|
||||
|
||||
static double Atlag()
|
||||
{
|
||||
return Data.varosok.Average(x => x.Homerseklet);
|
||||
}
|
||||
|
||||
static Varos Leghidegebb()
|
||||
{
|
||||
var legmelegebb = Data.varosok.OrderBy(x => x.Homerseklet).Take(1);
|
||||
return legmelegebb.First();
|
||||
}
|
||||
|
||||
static Varos Legmelegebb()
|
||||
{
|
||||
var legmelegebb = Data.varosok.OrderByDescending(x => x.Homerseklet).Take(1);
|
||||
return legmelegebb.First();
|
||||
}
|
||||
|
||||
static void DataRead()
|
||||
{
|
||||
string path = "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\varosok.txt";
|
||||
using (StreamReader streamReader = new StreamReader(path))
|
||||
{
|
||||
string line = streamReader.ReadLine();
|
||||
line = streamReader.ReadLine();
|
||||
|
||||
while (line != null)
|
||||
{
|
||||
string[] datas = line.Split(',');
|
||||
Varos varos = new Varos(datas[0], Convert.ToInt32(datas[1]));
|
||||
Data.varosok.Add(varos);
|
||||
line = streamReader.ReadLine();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Varos
|
||||
{
|
||||
public string Nev;
|
||||
public int Homerseklet;
|
||||
|
||||
public Varos(string nev, int homerseklet)
|
||||
{
|
||||
Nev = nev;
|
||||
Homerseklet = homerseklet;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Data
|
||||
{
|
||||
public static List<Varos> varosok = new List<Varos>();
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"ConsoleApp2/1.0.0": {
|
||||
"runtime": {
|
||||
"ConsoleApp2.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"ConsoleApp2/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||
"projectName": "ConsoleApp2",
|
||||
"projectPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\ConsoleApp2.csproj",
|
||||
"packagesPath": "C:\\Users\\szabomarton\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\szabomarton\\Desktop\\C#\\ProgaOra\\20240920\\ConsoleApp2\\ConsoleApp2\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\szabomarton\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\szabomarton\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.11.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\szabomarton\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
|
@ -0,0 +1,4 @@
|
|||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
|
@ -0,0 +1,23 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+82fc6b674fd1265407cef9381f915f8fb7df93c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
|
@ -0,0 +1 @@
|
|||
689549fe51d153fc5f381a183ba624cac369dd48a7be85a2b1c61abb3a853dc8
|
|
@ -0,0 +1,13 @@
|
|||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = ConsoleApp2
|
||||
build_property.ProjectDir = C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
|
@ -0,0 +1,8 @@
|
|||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
18ad58a4a862825168fc500f7f1e04509977c1e3da94c2a4ab1f91d365d5f40b
|
|
@ -0,0 +1,14 @@
|
|||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.AssemblyInfoInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.AssemblyInfo.cs
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.exe
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.deps.json
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.runtimeconfig.json
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\bin\Debug\net8.0\ConsoleApp2.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\refint\ConsoleApp2.dll
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.pdb
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ConsoleApp2.genruntimeconfig.cache
|
||||
C:\Users\szabomarton\Desktop\C#\ProgaOra\20240920\ConsoleApp2\ConsoleApp2\obj\Debug\net8.0\ref\ConsoleApp2.dll
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
2629f07ba15577b1c9eed9ff991ca0c682fb80978d3abeb885542c641f6e96ba
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user