asd
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\coords.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\coords.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\jel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\jel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 2,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Coords.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Coords.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Coords.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Coords.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Coords.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAjAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T11:17:26.101Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "Jel.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Jel.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Jel.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Jel.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Jel.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAB8AAAApAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T10:46:21.65Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAADQAAAAAAAAAAAAIwEYAAAAyAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T10:44:41.364Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\coords.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\coords.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|c:\\users\\szabomarton\\desktop\\emelt \u00E9retts\u00E9gi feladatok\\jelado\\consoleapp1\\consoleapp1\\jel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{32EC9C14-0182-4188-8CD1-B96EC715F93C}|ConsoleApp1\\ConsoleApp1.csproj|solutionrelative:consoleapp1\\jel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 2,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "Coords.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Coords.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Coords.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Coords.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Coords.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAjAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T11:17:26.101Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "Jel.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Jel.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Jel.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Jel.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Jel.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAB8AAAApAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T10:46:21.65Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "Program.cs",
|
||||
"DocumentMoniker": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeDocumentMoniker": "ConsoleApp1\\Program.cs",
|
||||
"ToolTip": "C:\\Users\\szabomarton\\Desktop\\Emelt \u00E9retts\u00E9gi feladatok\\jelado\\ConsoleApp1\\ConsoleApp1\\Program.cs",
|
||||
"RelativeToolTip": "ConsoleApp1\\Program.cs",
|
||||
"ViewState": "AgIAADQAAAAAAAAAAAAIwE4AAAAJAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-25T10:44:41.364Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
25
Emelt érettségi feladatok/jelado/ConsoleApp1/ConsoleApp1.sln
Normal file
25
Emelt érettségi feladatok/jelado/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.35312.102
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{32EC9C14-0182-4188-8CD1-B96EC715F93C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{32EC9C14-0182-4188-8CD1-B96EC715F93C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{32EC9C14-0182-4188-8CD1-B96EC715F93C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{32EC9C14-0182-4188-8CD1-B96EC715F93C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{32EC9C14-0182-4188-8CD1-B96EC715F93C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {8602F7C4-0BB9-4064-A0DC-3E9DE344440B}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -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>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{32EC9C14-0182-4188-8CD1-B96EC715F93C}</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="Coords.cs" />
|
||||
<Compile Include="Jel.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
public class Coords
|
||||
{
|
||||
public int X;
|
||||
public int Y;
|
||||
|
||||
public Coords(int x, int y) {
|
||||
this.X = x; this.Y = y;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
public class Jel
|
||||
{
|
||||
public int Ora;
|
||||
public int Perc;
|
||||
public int Masodperc;
|
||||
|
||||
public int X;
|
||||
public int Y;
|
||||
|
||||
public DateTime Idopont;
|
||||
|
||||
public Coords Koordinata;
|
||||
|
||||
public Jel(int ora, int perc, int masodperc, int x, int y) {
|
||||
this.Ora = ora;
|
||||
this .Perc = perc;
|
||||
this.Masodperc = masodperc;
|
||||
this.X = x;
|
||||
this.Y = y;
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
this.Idopont = new DateTime(now.Year, now.Month, now.Day,ora, perc, masodperc);
|
||||
|
||||
Koordinata = new Coords(x,y);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string path = $@"..\..\..\..\..\jel.txt";
|
||||
|
||||
var adat = File.ReadAllLines(path);
|
||||
|
||||
List<Jel> jelek = new List<Jel>();
|
||||
|
||||
foreach (var item in adat)
|
||||
{
|
||||
string[] line = item.Split(' ');
|
||||
int ora = int.Parse(line[0]);
|
||||
int perc = int.Parse(line[1]);
|
||||
int masodperc = int.Parse(line[2]);
|
||||
int x = int.Parse(line[3]);
|
||||
int y = int.Parse(line[4]);
|
||||
|
||||
Jel jel = new Jel(ora, perc, masodperc, x, y);
|
||||
jelek.Add(jel);
|
||||
}
|
||||
|
||||
Console.WriteLine("Adj meg egy számot:\t");
|
||||
int bekertSorszam = Convert.ToInt32(Console.ReadLine()) - 1;
|
||||
|
||||
Console.WriteLine($"x:{jelek[bekertSorszam].X}, y:{jelek[bekertSorszam].Y}");
|
||||
|
||||
Jel jel1 = jelek[0];
|
||||
Jel jel2 = jelek[jelek.Count - 1];
|
||||
|
||||
Console.WriteLine($"4. feladat: {Eltelt(jel1.Idopont, jel2.Idopont)}");
|
||||
|
||||
Coords legkisebb = Legkisebb(jelek);
|
||||
Coords legnagyobb = Legnagyobb(jelek);
|
||||
|
||||
Console.WriteLine($"legkisebb x:{legkisebb.X}, y:{legkisebb.Y}");
|
||||
Console.WriteLine($"legnagyobb x:{legnagyobb.X}, y:{legnagyobb.Y}");
|
||||
|
||||
List<double> elmozdulasok = new List<double>();
|
||||
|
||||
for (int i = 0; i < jelek.Count - 1; i++)
|
||||
{
|
||||
elmozdulasok.Add(Distance(jelek[i].Koordinata, jelek[i + 1].Koordinata));
|
||||
}
|
||||
|
||||
Console.WriteLine(Math.Round(elmozdulasok.Sum(),3));
|
||||
|
||||
for (int i = 0; i < jelek.Count - 1; i++)
|
||||
{
|
||||
Coords elteresek = new Coords(
|
||||
Math.Abs(
|
||||
jelek[i].Koordinata.X -
|
||||
jelek[i + 1].Koordinata.X ),
|
||||
Math.Abs(
|
||||
jelek[i].Koordinata.Y -
|
||||
jelek[i + 1].Koordinata.Y)
|
||||
);
|
||||
|
||||
if (elteresek.X > 10 || elteresek.Y > 10)
|
||||
{
|
||||
Console.WriteLine($"{jelek[i+1].Idopont} koordináta eltérés");
|
||||
}
|
||||
|
||||
if (Eltelt(jelek[i].Idopont, jelek[i + 1].Idopont).Minutes > 5)
|
||||
{
|
||||
Console.WriteLine($"{jelek[i+1].Idopont} időpont eltérés");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static double Distance(Coords coords1, Coords coords2)
|
||||
{
|
||||
return Math.Sqrt( Math.Pow((coords1.X - coords2.X), 2) + Math.Pow((coords1.Y - coords2.Y), 2));
|
||||
}
|
||||
|
||||
public static Coords Legnagyobb(List<Jel> jelek)
|
||||
{
|
||||
Coords legnagyobb = new Coords(122, 644);
|
||||
|
||||
foreach (var item in jelek)
|
||||
{
|
||||
if (item.Koordinata.Y > legnagyobb.Y)
|
||||
{
|
||||
legnagyobb.Y = item.Koordinata.Y;
|
||||
}
|
||||
|
||||
if (item.Koordinata.X > legnagyobb.X)
|
||||
{
|
||||
legnagyobb.X = item.Koordinata.X;
|
||||
}
|
||||
}
|
||||
|
||||
return legnagyobb;
|
||||
}
|
||||
|
||||
public static Coords Legkisebb(List<Jel> jelek)
|
||||
{
|
||||
Coords legkisebb = new Coords(122, 644);
|
||||
|
||||
foreach (var item in jelek)
|
||||
{
|
||||
if (item.Koordinata.Y < legkisebb.Y)
|
||||
{
|
||||
legkisebb.Y = item.Koordinata.Y;
|
||||
}
|
||||
|
||||
if (item.Koordinata.X < legkisebb.X)
|
||||
{
|
||||
legkisebb.X = item.Koordinata.X;
|
||||
}
|
||||
}
|
||||
|
||||
return legkisebb;
|
||||
}
|
||||
|
||||
public static TimeSpan Eltelt(DateTime kezdet, DateTime veg)
|
||||
{
|
||||
if (veg > kezdet)
|
||||
{
|
||||
DateTime temp = veg;
|
||||
veg = kezdet;
|
||||
kezdet = temp;
|
||||
}
|
||||
|
||||
return kezdet - veg;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 © 2025")]
|
||||
[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("32ec9c14-0182-4188-8cd1-b96ec715f93c")]
|
||||
|
||||
// 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")]
|
||||
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>
|
||||
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 @@
|
||||
56c1e421b06961c20a9f61711869cb72bfde5996f8d52f40c39244bce5b653f8
|
||||
@@ -0,0 +1,7 @@
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||
C:\Users\szabomarton\Desktop\Emelt érettségi feladatok\jelado\ConsoleApp1\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user