added helsinki
This commit is contained in:
parent
6afeb7c999
commit
8da3850875
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{BEFF2F03-9252-429D-A6C2-E7FD64D23145}</ProjectGuid>
|
<ProjectGuid>{BEFF2F03-9252-429D-A6C2-E7FD64D23145}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{BEFF2F03-9252-429D-A6C2-E7FD64D23145}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{BEFF2F03-9252-429D-A6C2-E7FD64D23145}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.Build.0 = Release|Any CPU
|
{BEFF2F03-9252-429D-A6C2-E7FD64D23145}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {94843553-FEE7-425F-A04C-37B898764952}
|
SolutionGuid = {94843553-FEE7-425F-A04C-37B898764952}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,155 +1,155 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
//B csoport lottó
|
//B csoport lottó
|
||||||
|
|
||||||
static void Feladat1()
|
static void Feladat1()
|
||||||
{
|
{
|
||||||
//1. feladat
|
//1. feladat
|
||||||
int[] szamok = { };
|
int[] szamok = { };
|
||||||
|
|
||||||
Console.WriteLine("Add meg az 52.hét lottó számait!");
|
Console.WriteLine("Add meg az 52.hét lottó számait!");
|
||||||
for (int i = 0; i < 5; ++i)
|
for (int i = 0; i < 5; ++i)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Add meg az {i+1}. számot!");
|
Console.WriteLine($"Add meg az {i+1}. számot!");
|
||||||
int het52 = Convert.ToInt32(Console.ReadLine());
|
int het52 = Convert.ToInt32(Console.ReadLine());
|
||||||
szamok = szamok.Append(het52).ToArray();
|
szamok = szamok.Append(het52).ToArray();
|
||||||
}
|
}
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
//2. feladat
|
//2. feladat
|
||||||
Array.Sort(szamok);
|
Array.Sort(szamok);
|
||||||
foreach (int n in szamok)
|
foreach (int n in szamok)
|
||||||
{
|
{
|
||||||
Console.WriteLine(n);
|
Console.WriteLine(n);
|
||||||
}
|
}
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
|
|
||||||
//3. feladat
|
//3. feladat
|
||||||
Console.WriteLine("Addj meg egy számot 1-51 között!");
|
Console.WriteLine("Addj meg egy számot 1-51 között!");
|
||||||
int felhszam = Convert.ToInt32(Console.ReadLine());
|
int felhszam = Convert.ToInt32(Console.ReadLine());
|
||||||
|
|
||||||
//4. feladat
|
//4. feladat
|
||||||
int paratlandb = 0;
|
int paratlandb = 0;
|
||||||
int[,] lottoszamok = new int[51,5];
|
int[,] lottoszamok = new int[51,5];
|
||||||
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lottosz.txt", FileMode.Open);
|
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lottosz.txt", FileMode.Open);
|
||||||
StreamReader sr = new StreamReader(fs);
|
StreamReader sr = new StreamReader(fs);
|
||||||
|
|
||||||
FileStream fs_2 = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lotto52ki.txt", FileMode.CreateNew);
|
FileStream fs_2 = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230913_doga\lotto52ki.txt", FileMode.CreateNew);
|
||||||
StreamWriter sw = new StreamWriter(fs_2);
|
StreamWriter sw = new StreamWriter(fs_2);
|
||||||
|
|
||||||
for (int i = 0; i < 51; ++i)
|
for (int i = 0; i < 51; ++i)
|
||||||
{
|
{
|
||||||
string str = sr.ReadLine();
|
string str = sr.ReadLine();
|
||||||
string[] hetiszamok = str.Split(' ');
|
string[] hetiszamok = str.Split(' ');
|
||||||
|
|
||||||
for (int j = 0; j < hetiszamok.Length; ++j)
|
for (int j = 0; j < hetiszamok.Length; ++j)
|
||||||
{
|
{
|
||||||
int szam = Convert.ToInt32(hetiszamok[j]);
|
int szam = Convert.ToInt32(hetiszamok[j]);
|
||||||
lottoszamok[i,j] = szam;
|
lottoszamok[i,j] = szam;
|
||||||
if (szam % 2 != 0)
|
if (szam % 2 != 0)
|
||||||
{
|
{
|
||||||
paratlandb++;
|
paratlandb++;
|
||||||
}
|
}
|
||||||
sw.Write($"{szam} ");
|
sw.Write($"{szam} ");
|
||||||
|
|
||||||
}
|
}
|
||||||
sw.WriteLine();
|
sw.WriteLine();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("A megadott heti lottószámok:");
|
Console.WriteLine("A megadott heti lottószámok:");
|
||||||
for (int g = 0; g < lottoszamok.GetLength(1); ++g)
|
for (int g = 0; g < lottoszamok.GetLength(1); ++g)
|
||||||
{
|
{
|
||||||
Console.WriteLine(lottoszamok[felhszam - 1, g]);
|
Console.WriteLine(lottoszamok[felhszam - 1, g]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sr.Close();
|
sr.Close();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
|
||||||
|
|
||||||
//5. feladat
|
//5. feladat
|
||||||
bool van = false;
|
bool van = false;
|
||||||
int[] kihuzottak = { };
|
int[] kihuzottak = { };
|
||||||
|
|
||||||
for (int i = 0; i < lottoszamok.GetLength(0); ++i)
|
for (int i = 0; i < lottoszamok.GetLength(0); ++i)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < lottoszamok.GetLength(1); ++j)
|
for (int j = 0; j < lottoszamok.GetLength(1); ++j)
|
||||||
{
|
{
|
||||||
int szam_1 = lottoszamok[i, j];
|
int szam_1 = lottoszamok[i, j];
|
||||||
bool nincsbenne = !kihuzottak.Contains(szam_1);
|
bool nincsbenne = !kihuzottak.Contains(szam_1);
|
||||||
if (nincsbenne)
|
if (nincsbenne)
|
||||||
{
|
{
|
||||||
kihuzottak = kihuzottak.Append(szam_1).ToArray();
|
kihuzottak = kihuzottak.Append(szam_1).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int g = 1; g < 91; ++g)
|
for (int g = 1; g < 91; ++g)
|
||||||
{
|
{
|
||||||
if (!kihuzottak.Contains(g))
|
if (!kihuzottak.Contains(g))
|
||||||
{
|
{
|
||||||
van = true;
|
van = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (van)
|
if (van)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Van");
|
Console.WriteLine("Van");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Console.WriteLine("Nincs");
|
Console.WriteLine("Nincs");
|
||||||
}
|
}
|
||||||
|
|
||||||
//6.feladat
|
//6.feladat
|
||||||
Console.WriteLine($"A páratlanok száma: {paratlandb}");
|
Console.WriteLine($"A páratlanok száma: {paratlandb}");
|
||||||
|
|
||||||
|
|
||||||
//7. feladat
|
//7. feladat
|
||||||
|
|
||||||
|
|
||||||
sw.WriteLine(szamok.ToString());
|
sw.WriteLine(szamok.ToString());
|
||||||
sw.Close();
|
sw.Close();
|
||||||
fs_2.Close();
|
fs_2.Close();
|
||||||
|
|
||||||
//8. feladat
|
//8. feladat
|
||||||
|
|
||||||
//9.feladat
|
//9.feladat
|
||||||
int[] primek = { };
|
int[] primek = { };
|
||||||
for (int i = 2; i <91; ++i)
|
for (int i = 2; i <91; ++i)
|
||||||
{
|
{
|
||||||
if (!primek.Contains(i))
|
if (!primek.Contains(i))
|
||||||
{
|
{
|
||||||
primek = primek.Append(i).ToArray();
|
primek = primek.Append(i).ToArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine("A prímszámok amiket nem tartalmaz: ");
|
Console.WriteLine("A prímszámok amiket nem tartalmaz: ");
|
||||||
for (int g = 1; g < 91; ++g)
|
for (int g = 1; g < 91; ++g)
|
||||||
{
|
{
|
||||||
if (!primek.Contains(g))
|
if (!primek.Contains(g))
|
||||||
{
|
{
|
||||||
Console.WriteLine(g);
|
Console.WriteLine(g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Feladat1();
|
Feladat1();
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("beff2f03-9252-429d-a6c2-e7fd64d23145")]
|
[assembly: Guid("beff2f03-9252-429d-a6c2-e7fd64d23145")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20230913_doga\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,52 +1,52 @@
|
||||||
37 42 44 61 62
|
37 42 44 61 62
|
||||||
18 42 54 83 89
|
18 42 54 83 89
|
||||||
5 12 31 53 60
|
5 12 31 53 60
|
||||||
1 28 47 56 70
|
1 28 47 56 70
|
||||||
54 56 57 59 71
|
54 56 57 59 71
|
||||||
7 21 33 39 86
|
7 21 33 39 86
|
||||||
21 29 37 48 68
|
21 29 37 48 68
|
||||||
10 21 29 40 87
|
10 21 29 40 87
|
||||||
13 33 73 77 78
|
13 33 73 77 78
|
||||||
2 23 65 71 84
|
2 23 65 71 84
|
||||||
3 21 28 30 33
|
3 21 28 30 33
|
||||||
23 31 42 73 85
|
23 31 42 73 85
|
||||||
4 23 42 61 64
|
4 23 42 61 64
|
||||||
17 60 66 71 85
|
17 60 66 71 85
|
||||||
12 60 66 67 72
|
12 60 66 67 72
|
||||||
46 50 58 62 76
|
46 50 58 62 76
|
||||||
20 32 43 65 73
|
20 32 43 65 73
|
||||||
55 56 58 61 71
|
55 56 58 61 71
|
||||||
18 38 41 67 89
|
18 38 41 67 89
|
||||||
32 41 59 66 79
|
32 41 59 66 79
|
||||||
25 35 37 74 86
|
25 35 37 74 86
|
||||||
1 45 60 61 82
|
1 45 60 61 82
|
||||||
7 20 35 58 83
|
7 20 35 58 83
|
||||||
7 37 40 46 51
|
7 37 40 46 51
|
||||||
2 6 47 74 80
|
2 6 47 74 80
|
||||||
1 5 22 44 88
|
1 5 22 44 88
|
||||||
23 33 34 71 89
|
23 33 34 71 89
|
||||||
4 56 74 77 89
|
4 56 74 77 89
|
||||||
17 18 51 52 75
|
17 18 51 52 75
|
||||||
7 29 30 77 80
|
7 29 30 77 80
|
||||||
17 18 28 35 90
|
17 18 28 35 90
|
||||||
6 24 25 53 79
|
6 24 25 53 79
|
||||||
7 12 18 38 90
|
7 12 18 38 90
|
||||||
25 28 45 55 74
|
25 28 45 55 74
|
||||||
10 29 60 74 86
|
10 29 60 74 86
|
||||||
7 24 25 50 76
|
7 24 25 50 76
|
||||||
20 40 52 54 90
|
20 40 52 54 90
|
||||||
16 30 81 83 87
|
16 30 81 83 87
|
||||||
20 22 23 50 67
|
20 22 23 50 67
|
||||||
59 68 75 80 85
|
59 68 75 80 85
|
||||||
32 45 55 70 78
|
32 45 55 70 78
|
||||||
13 40 55 56 76
|
13 40 55 56 76
|
||||||
3 14 24 73 83
|
3 14 24 73 83
|
||||||
23 25 28 66 76
|
23 25 28 66 76
|
||||||
24 33 34 39 54
|
24 33 34 39 54
|
||||||
12 28 34 61 70
|
12 28 34 61 70
|
||||||
1 4 8 69 74
|
1 4 8 69 74
|
||||||
4 15 46 49 59
|
4 15 46 49 59
|
||||||
24 31 67 71 73
|
24 31 67 71 73
|
||||||
12 26 36 46 49
|
12 26 36 46 49
|
||||||
9 20 21 59 68
|
9 20 21 59 68
|
||||||
System.Int32[]
|
System.Int32[]
|
||||||
|
|
|
@ -1,51 +1,51 @@
|
||||||
37 42 44 61 62
|
37 42 44 61 62
|
||||||
18 42 54 83 89
|
18 42 54 83 89
|
||||||
5 12 31 53 60
|
5 12 31 53 60
|
||||||
1 28 47 56 70
|
1 28 47 56 70
|
||||||
54 56 57 59 71
|
54 56 57 59 71
|
||||||
7 21 33 39 86
|
7 21 33 39 86
|
||||||
21 29 37 48 68
|
21 29 37 48 68
|
||||||
10 21 29 40 87
|
10 21 29 40 87
|
||||||
13 33 73 77 78
|
13 33 73 77 78
|
||||||
2 23 65 71 84
|
2 23 65 71 84
|
||||||
3 21 28 30 33
|
3 21 28 30 33
|
||||||
23 31 42 73 85
|
23 31 42 73 85
|
||||||
4 23 42 61 64
|
4 23 42 61 64
|
||||||
17 60 66 71 85
|
17 60 66 71 85
|
||||||
12 60 66 67 72
|
12 60 66 67 72
|
||||||
46 50 58 62 76
|
46 50 58 62 76
|
||||||
20 32 43 65 73
|
20 32 43 65 73
|
||||||
55 56 58 61 71
|
55 56 58 61 71
|
||||||
18 38 41 67 89
|
18 38 41 67 89
|
||||||
32 41 59 66 79
|
32 41 59 66 79
|
||||||
25 35 37 74 86
|
25 35 37 74 86
|
||||||
1 45 60 61 82
|
1 45 60 61 82
|
||||||
7 20 35 58 83
|
7 20 35 58 83
|
||||||
7 37 40 46 51
|
7 37 40 46 51
|
||||||
2 6 47 74 80
|
2 6 47 74 80
|
||||||
1 5 22 44 88
|
1 5 22 44 88
|
||||||
23 33 34 71 89
|
23 33 34 71 89
|
||||||
4 56 74 77 89
|
4 56 74 77 89
|
||||||
17 18 51 52 75
|
17 18 51 52 75
|
||||||
7 29 30 77 80
|
7 29 30 77 80
|
||||||
17 18 28 35 90
|
17 18 28 35 90
|
||||||
6 24 25 53 79
|
6 24 25 53 79
|
||||||
7 12 18 38 90
|
7 12 18 38 90
|
||||||
25 28 45 55 74
|
25 28 45 55 74
|
||||||
10 29 60 74 86
|
10 29 60 74 86
|
||||||
7 24 25 50 76
|
7 24 25 50 76
|
||||||
20 40 52 54 90
|
20 40 52 54 90
|
||||||
16 30 81 83 87
|
16 30 81 83 87
|
||||||
20 22 23 50 67
|
20 22 23 50 67
|
||||||
59 68 75 80 85
|
59 68 75 80 85
|
||||||
32 45 55 70 78
|
32 45 55 70 78
|
||||||
13 40 55 56 76
|
13 40 55 56 76
|
||||||
3 14 24 73 83
|
3 14 24 73 83
|
||||||
23 25 28 66 76
|
23 25 28 66 76
|
||||||
24 33 34 39 54
|
24 33 34 39 54
|
||||||
12 28 34 61 70
|
12 28 34 61 70
|
||||||
1 4 8 69 74
|
1 4 8 69 74
|
||||||
4 15 46 49 59
|
4 15 46 49 59
|
||||||
24 31 67 71 73
|
24 31 67 71 73
|
||||||
12 26 36 46 49
|
12 26 36 46 49
|
||||||
9 20 21 59 68
|
9 20 21 59 68
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{6DC513A5-2241-40C2-82DD-362B081D4D83}</ProjectGuid>
|
<ProjectGuid>{6DC513A5-2241-40C2-82DD-362B081D4D83}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{6DC513A5-2241-40C2-82DD-362B081D4D83}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{6DC513A5-2241-40C2-82DD-362B081D4D83}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.Build.0 = Release|Any CPU
|
{6DC513A5-2241-40C2-82DD-362B081D4D83}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {85585721-24A8-497B-8D0D-B57560614C3B}
|
SolutionGuid = {85585721-24A8-497B-8D0D-B57560614C3B}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("6dc513a5-2241-40c2-82dd-362b081d4d83")]
|
[assembly: Guid("6dc513a5-2241-40c2-82dd-362b081d4d83")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{657D5BEA-6DAF-4340-BF93-DA334436BA63}</ProjectGuid>
|
<ProjectGuid>{657D5BEA-6DAF-4340-BF93-DA334436BA63}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp2</RootNamespace>
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp2</AssemblyName>
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{657D5BEA-6DAF-4340-BF93-DA334436BA63}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{657D5BEA-6DAF-4340-BF93-DA334436BA63}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.Build.0 = Release|Any CPU
|
{657D5BEA-6DAF-4340-BF93-DA334436BA63}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {0B023ED5-0D1A-4DD3-B3C7-D4FD182C5F63}
|
SolutionGuid = {0B023ED5-0D1A-4DD3-B3C7-D4FD182C5F63}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,69 +1,69 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace ConsoleApp2
|
namespace ConsoleApp2
|
||||||
{
|
{
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
public static class MyData
|
public static class MyData
|
||||||
{
|
{
|
||||||
public static ArrayList csaladnev = new ArrayList();
|
public static ArrayList csaladnev = new ArrayList();
|
||||||
public static ArrayList keresztnev = new ArrayList();
|
public static ArrayList keresztnev = new ArrayList();
|
||||||
public static ArrayList magassag = new ArrayList();
|
public static ArrayList magassag = new ArrayList();
|
||||||
public static ArrayList tomeg = new ArrayList();
|
public static ArrayList tomeg = new ArrayList();
|
||||||
public static ArrayList nem = new ArrayList();
|
public static ArrayList nem = new ArrayList();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Feladat1()
|
static void Feladat1()
|
||||||
{
|
{
|
||||||
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\tanulók.txt", FileMode.Open, FileAccess.Read);
|
FileStream fs = new FileStream(@"C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\tanulók.txt", FileMode.Open, FileAccess.Read);
|
||||||
StreamReader sr = new StreamReader(fs);
|
StreamReader sr = new StreamReader(fs);
|
||||||
string sor = sr.ReadLine();
|
string sor = sr.ReadLine();
|
||||||
while (sor != null)
|
while (sor != null)
|
||||||
{
|
{
|
||||||
string[] temp = sor.Split(';');
|
string[] temp = sor.Split(';');
|
||||||
MyData.csaladnev.Add(temp[0]);
|
MyData.csaladnev.Add(temp[0]);
|
||||||
MyData.keresztnev.Add(temp[1]);
|
MyData.keresztnev.Add(temp[1]);
|
||||||
MyData.magassag.Add(Convert.ToByte(temp[2]));
|
MyData.magassag.Add(Convert.ToByte(temp[2]));
|
||||||
MyData.tomeg.Add(Convert.ToDouble(temp[3]));
|
MyData.tomeg.Add(Convert.ToDouble(temp[3]));
|
||||||
MyData.nem.Add(temp[4]);
|
MyData.nem.Add(temp[4]);
|
||||||
sor = sr.ReadLine();
|
sor = sr.ReadLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
sr.Close();
|
sr.Close();
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
|
||||||
foreach (string str in MyData.csaladnev)
|
foreach (string str in MyData.csaladnev)
|
||||||
{
|
{
|
||||||
Console.WriteLine(str);
|
Console.WriteLine(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string str in MyData.keresztnev)
|
foreach (string str in MyData.keresztnev)
|
||||||
{
|
{
|
||||||
Console.WriteLine(str);
|
Console.WriteLine(str);
|
||||||
}
|
}
|
||||||
foreach (string str in MyData.magassag)
|
foreach (string str in MyData.magassag)
|
||||||
{
|
{
|
||||||
Console.WriteLine(str);
|
Console.WriteLine(str);
|
||||||
}
|
}
|
||||||
foreach (string str in MyData.tomeg)
|
foreach (string str in MyData.tomeg)
|
||||||
{
|
{
|
||||||
Console.WriteLine(str);
|
Console.WriteLine(str);
|
||||||
}
|
}
|
||||||
foreach (string str in MyData.nem)
|
foreach (string str in MyData.nem)
|
||||||
{
|
{
|
||||||
Console.WriteLine(str);
|
Console.WriteLine(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Feladat1();
|
Feladat1();
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp2")]
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp2")]
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("657d5bea-6daf-4340-bf93-da334436ba63")]
|
[assembly: Guid("657d5bea-6daf-4340-bf93-da334436ba63")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,8 +1,8 @@
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
||||||
Verebes Fruzsina 149 54,4 lány
|
Verebes Fruzsina 149 54,4 lány
|
|
@ -1,100 +1,100 @@
|
||||||
Verebes;Fruzsina;149;54,4;lány
|
Verebes;Fruzsina;149;54,4;lány
|
||||||
Borsodi;Attila;167;51,1;fiú
|
Borsodi;Attila;167;51,1;fiú
|
||||||
Major;Liza;155;52;lány
|
Major;Liza;155;52;lány
|
||||||
Varga;Ernő;173;46,5;fiú
|
Varga;Ernő;173;46,5;fiú
|
||||||
Lendvai;Vera;165;46,7;lány
|
Lendvai;Vera;165;46,7;lány
|
||||||
Kulcsár;Antal;172;55,7;fiú
|
Kulcsár;Antal;172;55,7;fiú
|
||||||
Petróczi;Virág;169;41,3;lány
|
Petróczi;Virág;169;41,3;lány
|
||||||
Pais;Károly;155;55,5;fiú
|
Pais;Károly;155;55,5;fiú
|
||||||
Horváth;Adél;157;56,5;lány
|
Horváth;Adél;157;56,5;lány
|
||||||
Kiss;Balázs;163;54,5;fiú
|
Kiss;Balázs;163;54,5;fiú
|
||||||
Orosz;Ingrid;172;41,9;lány
|
Orosz;Ingrid;172;41,9;lány
|
||||||
Pelikán;Tamás;172;48,9;fiú
|
Pelikán;Tamás;172;48,9;fiú
|
||||||
Zalai;Elvira;147;57,4;lány
|
Zalai;Elvira;147;57,4;lány
|
||||||
Papp;Lilla;169;56;lány
|
Papp;Lilla;169;56;lány
|
||||||
Huszár;Dorina;151;48,1;lány
|
Huszár;Dorina;151;48,1;lány
|
||||||
Kiss;Krisztián;145;59,3;fiú
|
Kiss;Krisztián;145;59,3;fiú
|
||||||
Sipos;Zsolt;173;57,6;fiú
|
Sipos;Zsolt;173;57,6;fiú
|
||||||
Pongrácz;Karina;175;42,1;lány
|
Pongrácz;Karina;175;42,1;lány
|
||||||
Vissi;Klaudia;166;59;lány
|
Vissi;Klaudia;166;59;lány
|
||||||
Gellén;Bea;188;47,9;lány
|
Gellén;Bea;188;47,9;lány
|
||||||
Ferencz;Ivett;171;51;lány
|
Ferencz;Ivett;171;51;lány
|
||||||
Ujj;Mihály;188;55,6;fiú
|
Ujj;Mihály;188;55,6;fiú
|
||||||
Kovács;Gergely;147;42;fiú
|
Kovács;Gergely;147;42;fiú
|
||||||
Felföldi;Judit;145;52,3;lány
|
Felföldi;Judit;145;52,3;lány
|
||||||
Bartal;Zsolt;169;49,9;fiú
|
Bartal;Zsolt;169;49,9;fiú
|
||||||
Simon;Erik;171;46,7;fiú
|
Simon;Erik;171;46,7;fiú
|
||||||
Csiszár;Alexandra;170;52,8;lány
|
Csiszár;Alexandra;170;52,8;lány
|
||||||
Pesti;Milán;188;53,3;fiú
|
Pesti;Milán;188;53,3;fiú
|
||||||
Simon;Rita;166;46;lány
|
Simon;Rita;166;46;lány
|
||||||
Somogyi;Dezső;177;46,3;fiú
|
Somogyi;Dezső;177;46,3;fiú
|
||||||
Magyar;Magdolna;150;56,8;lány
|
Magyar;Magdolna;150;56,8;lány
|
||||||
Gombos;Kinga;149;56,7;lány
|
Gombos;Kinga;149;56,7;lány
|
||||||
Egerszegi;Kristóf;162;52,2;fiú
|
Egerszegi;Kristóf;162;52,2;fiú
|
||||||
Somogyi;Tamás;172;59,7;fiú
|
Somogyi;Tamás;172;59,7;fiú
|
||||||
Varga;Anna;188;58,3;lány
|
Varga;Anna;188;58,3;lány
|
||||||
Csondor;Anikó;159;45,3;lány
|
Csondor;Anikó;159;45,3;lány
|
||||||
Vass;Szabolcs;188;54,2;fiú
|
Vass;Szabolcs;188;54,2;fiú
|
||||||
Szabó;Csilla;163;59,6;lány
|
Szabó;Csilla;163;59,6;lány
|
||||||
Pass;Flóra;177;45,6;lány
|
Pass;Flóra;177;45,6;lány
|
||||||
Agg;Judit;145;51,1;lány
|
Agg;Judit;145;51,1;lány
|
||||||
Gyenese;Oszkár;157;43;fiú
|
Gyenese;Oszkár;157;43;fiú
|
||||||
Hardi;Boglárka;159;60;lány
|
Hardi;Boglárka;159;60;lány
|
||||||
Kuti;Lehel;163;53,8;fiú
|
Kuti;Lehel;163;53,8;fiú
|
||||||
Domján;Hermina;165;41,3;lány
|
Domján;Hermina;165;41,3;lány
|
||||||
Tompa;Krisztina;172;51,9;lány
|
Tompa;Krisztina;172;51,9;lány
|
||||||
Radics;Betti;171;42,9;lány
|
Radics;Betti;171;42,9;lány
|
||||||
Balla;Ibolya;180;43;lány
|
Balla;Ibolya;180;43;lány
|
||||||
Csontos;Janka;151;56,2;lány
|
Csontos;Janka;151;56,2;lány
|
||||||
Radics;Zsuzsa;159;46,4;lány
|
Radics;Zsuzsa;159;46,4;lány
|
||||||
Vajda;Klára;172;41,9;lány
|
Vajda;Klára;172;41,9;lány
|
||||||
Simon;Marcell;171;46,6;fiú
|
Simon;Marcell;171;46,6;fiú
|
||||||
Salamon;Laura;162;48,3;lány
|
Salamon;Laura;162;48,3;lány
|
||||||
Bakony;Ilona;145;46,7;lány
|
Bakony;Ilona;145;46,7;lány
|
||||||
Hantos;Bence;147;59;fiú
|
Hantos;Bence;147;59;fiú
|
||||||
Kovács;Erika;167;59,6;lány
|
Kovács;Erika;167;59,6;lány
|
||||||
Csiszár;Bella;168;48,6;lány
|
Csiszár;Bella;168;48,6;lány
|
||||||
Simon;Dorina;169;46,3;lány
|
Simon;Dorina;169;46,3;lány
|
||||||
Bicsák;Hilda;173;44;lány
|
Bicsák;Hilda;173;44;lány
|
||||||
Varga;Rozália;156;44,1;lány
|
Varga;Rozália;156;44,1;lány
|
||||||
Lengyel;Viktor;188;53,3;fiú
|
Lengyel;Viktor;188;53,3;fiú
|
||||||
Molnár;Zsombor;172;48,8;fiú
|
Molnár;Zsombor;172;48,8;fiú
|
||||||
Hajba;Soma;178;48,8;fiú
|
Hajba;Soma;178;48,8;fiú
|
||||||
Bocskor;Henrik;154;54,5;fiú
|
Bocskor;Henrik;154;54,5;fiú
|
||||||
Hajdu;Szilvia;157;47,2;lány
|
Hajdu;Szilvia;157;47,2;lány
|
||||||
Csalló;Aliz;159;53;lány
|
Csalló;Aliz;159;53;lány
|
||||||
Kelemen;Gergő;163;44,9;fiú
|
Kelemen;Gergő;163;44,9;fiú
|
||||||
Kaczor;Jenő;167;44,5;fiú
|
Kaczor;Jenő;167;44,5;fiú
|
||||||
Bujtor;Erzsébet;167;52,1;lány
|
Bujtor;Erzsébet;167;52,1;lány
|
||||||
Gombos;Olivér;168;42,5;fiú
|
Gombos;Olivér;168;42,5;fiú
|
||||||
Varga;Cili;172;49,7;lány
|
Varga;Cili;172;49,7;lány
|
||||||
Gulyás;Katalin;171;58,2;lány
|
Gulyás;Katalin;171;58,2;lány
|
||||||
Vass;Vera;155;46;lány
|
Vass;Vera;155;46;lány
|
||||||
Salamon;András;177;55,9;fiú
|
Salamon;András;177;55,9;fiú
|
||||||
Elekes;Elza;177;48,2;lány
|
Elekes;Elza;177;48,2;lány
|
||||||
Nagy;Melinda;145;46,5;lány
|
Nagy;Melinda;145;46,5;lány
|
||||||
Kovács;Vivien;160;58,5;lány
|
Kovács;Vivien;160;58,5;lány
|
||||||
Kaszás;Ferenc;149;53;fiú
|
Kaszás;Ferenc;149;53;fiú
|
||||||
Balogh;Borbála;166;52,9;lány
|
Balogh;Borbála;166;52,9;lány
|
||||||
Horváth;Barbara;153;49,1;lány
|
Horváth;Barbara;153;49,1;lány
|
||||||
Dobos;Vilma;180;42,9;lány
|
Dobos;Vilma;180;42,9;lány
|
||||||
Nagy;Miklós;156;51,7;fiú
|
Nagy;Miklós;156;51,7;fiú
|
||||||
Kovács;Ambrus;173;54,2;fiú
|
Kovács;Ambrus;173;54,2;fiú
|
||||||
Paksa;Csilla;141;58,4;lány
|
Paksa;Csilla;141;58,4;lány
|
||||||
Bende;Natália;145;56,9;lány
|
Bende;Natália;145;56,9;lány
|
||||||
Czigány;Judit;161;41,4;lány
|
Czigány;Judit;161;41,4;lány
|
||||||
Simon;Edina;167;51,3;lány
|
Simon;Edina;167;51,3;lány
|
||||||
Monok;Gabriella;168;58,4;lány
|
Monok;Gabriella;168;58,4;lány
|
||||||
Jakab;Etelka;169;49,2;lány
|
Jakab;Etelka;169;49,2;lány
|
||||||
Vig;Viola;159;53,9;lány
|
Vig;Viola;159;53,9;lány
|
||||||
Szegleti;Tamás;160;50,5;fiú
|
Szegleti;Tamás;160;50,5;fiú
|
||||||
Pataki;Viktória;149;50,8;lány
|
Pataki;Viktória;149;50,8;lány
|
||||||
Vass;Ildikó;171;49,8;lány
|
Vass;Ildikó;171;49,8;lány
|
||||||
Farsang;Jakab;168;47,7;fiú
|
Farsang;Jakab;168;47,7;fiú
|
||||||
Vajda;István;163;48,7;fiú
|
Vajda;István;163;48,7;fiú
|
||||||
Marosvári;Krisztina;162;46,1;lány
|
Marosvári;Krisztina;162;46,1;lány
|
||||||
Horváth;Kamilla;159;42,1;lány
|
Horváth;Kamilla;159;42,1;lány
|
||||||
Koller;Tamás;171;45,6;fiú
|
Koller;Tamás;171;45,6;fiú
|
||||||
Kocsis;Tamara;170;59,6;lány
|
Kocsis;Tamara;170;59,6;lány
|
||||||
Molnár;Vera;155;42,2;lány
|
Molnár;Vera;155;42,2;lány
|
||||||
Hegyi;Csaba;152;48,4;fiú
|
Hegyi;Csaba;152;48,4;fiú
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
C:\Users\szabomarton\Desktop\C#\20230920\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{37CB7692-799A-49D7-9365-3F1F7A29F4A2}</ProjectGuid>
|
<ProjectGuid>{37CB7692-799A-49D7-9365-3F1F7A29F4A2}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{37CB7692-799A-49D7-9365-3F1F7A29F4A2}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{37CB7692-799A-49D7-9365-3F1F7A29F4A2}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
{37CB7692-799A-49D7-9365-3F1F7A29F4A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {74441948-646F-4654-A6E8-C42946C62E66}
|
SolutionGuid = {74441948-646F-4654-A6E8-C42946C62E66}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,45 +1,45 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
abstract class Jarmu
|
abstract class Jarmu
|
||||||
{
|
{
|
||||||
public string Marka { get; set; }
|
public string Marka { get; set; }
|
||||||
public int Ev { get; set; }
|
public int Ev { get; set; }
|
||||||
public abstract void Vezeto();
|
public abstract void Vezeto();
|
||||||
}
|
}
|
||||||
|
|
||||||
class Auto : Jarmu
|
class Auto : Jarmu
|
||||||
{
|
{
|
||||||
public int loero { get; set; }
|
public int loero { get; set; }
|
||||||
|
|
||||||
public override void Vezeto()
|
public override void Vezeto()
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Az autó vezetés: {Marka}, Ev: {Ev}, loero: {loero}");
|
Console.WriteLine($"Az autó vezetés: {Marka}, Ev: {Ev}, loero: {loero}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Kerekpar : Jarmu
|
class Kerekpar : Jarmu
|
||||||
{
|
{
|
||||||
public int Sebesseg { get; set; }
|
public int Sebesseg { get; set; }
|
||||||
public override void Vezeto()
|
public override void Vezeto()
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Kerékpározás: {Marka}, Ev: {Ev}, Sebesseg: {Sebesseg}");
|
Console.WriteLine($"Kerékpározás: {Marka}, Ev: {Ev}, Sebesseg: {Sebesseg}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Auto auto1 = new Auto { Marka = "Suzuki", Ev = 2002, loero = 997 };
|
Auto auto1 = new Auto { Marka = "Suzuki", Ev = 2002, loero = 997 };
|
||||||
auto1.Vezeto();
|
auto1.Vezeto();
|
||||||
Kerekpar kero = new Kerekpar { Marka = "Csepel", Ev = 2020, Sebesseg = 5 };
|
Kerekpar kero = new Kerekpar { Marka = "Csepel", Ev = 2020, Sebesseg = 5 };
|
||||||
kero.Vezeto();
|
kero.Vezeto();
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("37cb7692-799a-49d7-9365-3f1f7a29f4a2")]
|
[assembly: Guid("37cb7692-799a-49d7-9365-3f1f7a29f4a2")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231011\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}</ProjectGuid>
|
<ProjectGuid>{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.Build.0 = Release|Any CPU
|
{C3708B4F-6B02-49FA-8D23-EE80F619CAA2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {ED5FDD19-880A-41F5-84D7-4C554147E0E4}
|
SolutionGuid = {ED5FDD19-880A-41F5-84D7-4C554147E0E4}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Osztaly
|
class Osztaly
|
||||||
{
|
{
|
||||||
private static int peldanyokszama = 0;
|
private static int peldanyokszama = 0;
|
||||||
public Osztaly()
|
public Osztaly()
|
||||||
{
|
{
|
||||||
peldanyokszama++;
|
peldanyokszama++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int Peldanyszam()
|
public static int Peldanyszam()
|
||||||
{
|
{
|
||||||
return peldanyokszama;
|
return peldanyokszama;
|
||||||
}
|
}
|
||||||
~Osztaly()
|
~Osztaly()
|
||||||
{
|
{
|
||||||
Console.WriteLine(Peldanyszam());
|
Console.WriteLine(Peldanyszam());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Osztaly objektum = new Osztaly();
|
Osztaly objektum = new Osztaly();
|
||||||
Console.WriteLine(Osztaly.Peldanyszam());
|
Console.WriteLine(Osztaly.Peldanyszam());
|
||||||
Osztaly obj = new Osztaly();
|
Osztaly obj = new Osztaly();
|
||||||
Osztaly obj2 = new Osztaly();
|
Osztaly obj2 = new Osztaly();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("c3708b4f-6b02-49fa-8d23-ee80f619caa2")]
|
[assembly: Guid("c3708b4f-6b02-49fa-8d23-ee80f619caa2")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{2EFD125E-5061-411B-8CFA-ACC21FA5265D}</ProjectGuid>
|
<ProjectGuid>{2EFD125E-5061-411B-8CFA-ACC21FA5265D}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp2</RootNamespace>
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp2</AssemblyName>
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{2EFD125E-5061-411B-8CFA-ACC21FA5265D}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{2EFD125E-5061-411B-8CFA-ACC21FA5265D}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{2EFD125E-5061-411B-8CFA-ACC21FA5265D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {05B69EA5-EF15-465D-9054-21CF1635B5F4}
|
SolutionGuid = {05B69EA5-EF15-465D-9054-21CF1635B5F4}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp2
|
namespace ConsoleApp2
|
||||||
{
|
{
|
||||||
public static class Intkiterjesztesek
|
public static class Intkiterjesztesek
|
||||||
{
|
{
|
||||||
public static int Factorial(this int szam)
|
public static int Factorial(this int szam)
|
||||||
{
|
{
|
||||||
if (szam < 0) {
|
if (szam < 0) {
|
||||||
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (szam == 0 || szam == 1)
|
if (szam == 0 || szam == 1)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
for (int i = 2; i <= szam; ++i) {
|
for (int i = 2; i <= szam; ++i) {
|
||||||
result *= i;
|
result *= i;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
int szam = 5;
|
int szam = 5;
|
||||||
int factorial = szam.Factorial();
|
int factorial = szam.Factorial();
|
||||||
Console.WriteLine($"{szam}! = {factorial}");
|
Console.WriteLine($"{szam}! = {factorial}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp2")]
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp2")]
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("2efd125e-5061-411b-8cfa-acc21fa5265d")]
|
[assembly: Guid("2efd125e-5061-411b-8cfa-acc21fa5265d")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\bin\Debug\ConsoleApp2.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
C:\Users\szabomarton\Desktop\C#\20231018\ConsoleApp2\obj\Debug\ConsoleApp2.pdb
|
||||||
|
|
|
@ -1,48 +1,48 @@
|
||||||
public static típus függénynév(this típus név, tov.paraméterek){
|
public static típus függénynév(this típus név, tov.paraméterek){
|
||||||
függvénytörzs;
|
függvénytörzs;
|
||||||
};
|
};
|
||||||
Az így defininált függvény
|
Az így defininált függvény
|
||||||
|
|
||||||
|
|
||||||
public static class Intkiterjesztesek
|
public static class Intkiterjesztesek
|
||||||
{
|
{
|
||||||
public static int Factorial(this int szam)
|
public static int Factorial(this int szam)
|
||||||
{
|
{
|
||||||
if (szam < 0) {
|
if (szam < 0) {
|
||||||
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
throw new ArgumentException("A negatív számoknak nincs faktoriálisa");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (szam == 0 || szam == 1)
|
if (szam == 0 || szam == 1)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = 1;
|
int result = 1;
|
||||||
for (int i = 2; i <= szam; ++i) {
|
for (int i = 2; i <= szam; ++i) {
|
||||||
result *= i;
|
result *= i;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
int szam = 5;
|
int szam = 5;
|
||||||
int factorial = szam.Factorial();
|
int factorial = szam.Factorial();
|
||||||
Console.WriteLine($"{szam}! = {factorial}");
|
Console.WriteLine($"{szam}! = {factorial}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
A this kulcsszó használatával a függvénykiterjesztésekben az objektum, amelyre alkalmazni szeretnénk a kiterjesztett metódust, paraméterként jut át a metódusnak.
|
A this kulcsszó használatával a függvénykiterjesztésekben az objektum, amelyre alkalmazni szeretnénk a kiterjesztett metódust, paraméterként jut át a metódusnak.
|
||||||
Ez a példa egy egyszerű függvénykiterjesztés az int típushoz, amely a szám faktoriálisát számítja ki.
|
Ez a példa egy egyszerű függvénykiterjesztés az int típushoz, amely a szám faktoriálisát számítja ki.
|
||||||
|
|
||||||
A throw kulcsszót a hiba vagy kivétel dobása céljából használhatunk.
|
A throw kulcsszót a hiba vagy kivétel dobása céljából használhatunk.
|
||||||
Amikor egy kivételt dobunk akkor valamilyen előre definiált kivételosztály egy példányát kaphatjuk vissza, vagy saját magunk által definiált kivételosztály.
|
Amikor egy kivételt dobunk akkor valamilyen előre definiált kivételosztály egy példányát kaphatjuk vissza, vagy saját magunk által definiált kivételosztály.
|
||||||
|
|
||||||
A throw tehát lehetővé teszi számunkra, hogy megállítsuk a program futását és jelezzük, hogy valamilyen probléma vagy kivlételes helyzet áll fennm amely kezelést igényel.
|
A throw tehát lehetővé teszi számunkra, hogy megállítsuk a program futását és jelezzük, hogy valamilyen probléma vagy kivlételes helyzet áll fennm amely kezelést igényel.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{F1939277-923D-4841-B3CD-C9C3B4FFC17B}</ProjectGuid>
|
<ProjectGuid>{F1939277-923D-4841-B3CD-C9C3B4FFC17B}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{F1939277-923D-4841-B3CD-C9C3B4FFC17B}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{F1939277-923D-4841-B3CD-C9C3B4FFC17B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.Build.0 = Release|Any CPU
|
{F1939277-923D-4841-B3CD-C9C3B4FFC17B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {4C37CA09-2E20-4F4F-8F81-601E005623D1}
|
SolutionGuid = {4C37CA09-2E20-4F4F-8F81-601E005623D1}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,73 +1,73 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Szamolo
|
class Szamolo
|
||||||
{
|
{
|
||||||
public double operand1, operand2;
|
public double operand1, operand2;
|
||||||
public Szamolo(double operand1, double operand2)
|
public Szamolo(double operand1, double operand2)
|
||||||
{
|
{
|
||||||
this.operand1 = operand1;
|
this.operand1 = operand1;
|
||||||
this.operand2 = operand2;
|
this.operand2 = operand2;
|
||||||
}
|
}
|
||||||
public double Kalk(char operatorCode)
|
public double Kalk(char operatorCode)
|
||||||
{
|
{
|
||||||
switch (operatorCode)
|
switch (operatorCode)
|
||||||
{
|
{
|
||||||
case '+':
|
case '+':
|
||||||
return operand1 + operand2;
|
return operand1 + operand2;
|
||||||
break;
|
break;
|
||||||
case '-':
|
case '-':
|
||||||
return operand1 - operand2;
|
return operand1 - operand2;
|
||||||
break;
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
return operand1 * operand2;
|
return operand1 * operand2;
|
||||||
break;
|
break;
|
||||||
case '/':
|
case '/':
|
||||||
if (operand2 != 0)
|
if (operand2 != 0)
|
||||||
{
|
{
|
||||||
return operand1 / operand2;
|
return operand1 / operand2;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
throw new DivideByZeroException("Ne osszá nullával!");
|
throw new DivideByZeroException("Ne osszá nullával!");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Adja meg az első operandust!");
|
Console.WriteLine("Adja meg az első operandust!");
|
||||||
double op1 = Convert.ToDouble(Console.ReadLine());
|
double op1 = Convert.ToDouble(Console.ReadLine());
|
||||||
Console.WriteLine("Adja meg a második operandust!");
|
Console.WriteLine("Adja meg a második operandust!");
|
||||||
double op2 = Convert.ToDouble(Console.ReadLine());
|
double op2 = Convert.ToDouble(Console.ReadLine());
|
||||||
Console.WriteLine("Add meg a műveletet!");
|
Console.WriteLine("Add meg a műveletet!");
|
||||||
char muvelet = Convert.ToChar(Console.ReadLine());
|
char muvelet = Convert.ToChar(Console.ReadLine());
|
||||||
|
|
||||||
Szamolo szamol = new Szamolo(op1, op2);
|
Szamolo szamol = new Szamolo(op1, op2);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
double er = szamol.Kalk(muvelet);
|
double er = szamol.Kalk(muvelet);
|
||||||
Console.WriteLine(er);
|
Console.WriteLine(er);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("f1939277-923d-4841-b3cd-c9c3b4ffc17b")]
|
[assembly: Guid("f1939277-923d-4841-b3cd-c9c3b4ffc17b")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231115\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}</ProjectGuid>
|
<ProjectGuid>{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp2</RootNamespace>
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp2</AssemblyName>
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.Build.0 = Release|Any CPU
|
{CADF71AE-EEFC-4AF1-A8B7-AD080CF7BD73}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {25B8FF27-DF2A-4B5A-AA97-13639132CF77}
|
SolutionGuid = {25B8FF27-DF2A-4B5A-AA97-13639132CF77}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp2
|
namespace ConsoleApp2
|
||||||
{
|
{
|
||||||
class Lakas
|
class Lakas
|
||||||
{
|
{
|
||||||
double szelesseg, hossz, magassag;
|
double szelesseg, hossz, magassag;
|
||||||
int csempe;
|
int csempe;
|
||||||
|
|
||||||
double padlo, Aoldal, Boldal;
|
double padlo, Aoldal, Boldal;
|
||||||
public Lakas(double szelesseg, double hossz, double magassag)
|
public Lakas(double szelesseg, double hossz, double magassag)
|
||||||
{
|
{
|
||||||
padlo = szelesseg * hossz;
|
padlo = szelesseg * hossz;
|
||||||
Aoldal = hossz * magassag;
|
Aoldal = hossz * magassag;
|
||||||
Boldal = magassag * szelesseg;
|
Boldal = magassag * szelesseg;
|
||||||
}
|
}
|
||||||
|
|
||||||
double csempeA, csempeB;
|
double csempeA, csempeB;
|
||||||
public Csempemeret()
|
public Csempemeret()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp2")]
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp2")]
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("cadf71ae-eefc-4af1-a8b7-ad080cf7bd73")]
|
[assembly: Guid("cadf71ae-eefc-4af1-a8b7-ad080cf7bd73")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
Készítsünk számológépet:
|
Készítsünk számológépet:
|
||||||
A Szamolo osztály tartalmazzon egy Kalk metódust,
|
A Szamolo osztály tartalmazzon egy Kalk metódust,
|
||||||
amely adott műveleti kódra elvégzi a két operandus között a megfelelő műveletet.
|
amely adott műveleti kódra elvégzi a két operandus között a megfelelő műveletet.
|
||||||
A kalk metódus az adatokat az osztály adattagjaiból vegye;
|
A kalk metódus az adatokat az osztály adattagjaiból vegye;
|
||||||
ezeket a főprogram közvetlenül érje el.
|
ezeket a főprogram közvetlenül érje el.
|
||||||
A főprogram készítsén ebből egy Kiszamol példányt, kérjen be két operanmdust és egy műveleti kódot, végeztesse el a műveletet, majd írja ki az eredményt.
|
A főprogram készítsén ebből egy Kiszamol példányt, kérjen be két operanmdust és egy műveleti kódot, végeztesse el a műveletet, majd írja ki az eredményt.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Készítsen osztályt amely lakóhelyiségek alapterületét, falfelületét és a mennyezet méretét számolja ki a helyiség hossza szélessége és belmagassága alapján.
|
Készítsen osztályt amely lakóhelyiségek alapterületét, falfelületét és a mennyezet méretét számolja ki a helyiség hossza szélessége és belmagassága alapján.
|
||||||
Az osztály tesztelésként kérje be hány helyiségbe szeretne az illető csempézni és festeni, majd kérd be a helyiségek adatait.
|
Az osztály tesztelésként kérje be hány helyiségbe szeretne az illető csempézni és festeni, majd kérd be a helyiségek adatait.
|
||||||
Végül adja meg, hogy mennyi csempére és falfestékre lesz szükség.
|
Végül adja meg, hogy mennyi csempére és falfestékre lesz szükség.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}</ProjectGuid>
|
<ProjectGuid>{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.Build.0 = Release|Any CPU
|
{B6DF9AD0-30C9-4B67-A782-EC20DE270E30}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {06955B28-9CD1-4AA1-BF0D-95D7E966C0F9}
|
SolutionGuid = {06955B28-9CD1-4AA1-BF0D-95D7E966C0F9}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,50 +1,50 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
public class Alak
|
public class Alak
|
||||||
{
|
{
|
||||||
public virtual void Rajzol() {
|
public virtual void Rajzol() {
|
||||||
Console.WriteLine("Alakzat rajzolása.");
|
Console.WriteLine("Alakzat rajzolása.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Kor : Alak
|
public class Kor : Alak
|
||||||
{
|
{
|
||||||
public override void Rajzol()
|
public override void Rajzol()
|
||||||
{
|
{
|
||||||
Console.WriteLine("Kör rajzolása.");
|
Console.WriteLine("Kör rajzolása.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Kocka : Alak
|
public class Kocka : Alak
|
||||||
{
|
{
|
||||||
public override void Rajzol()
|
public override void Rajzol()
|
||||||
{
|
{
|
||||||
Console.WriteLine("Téglalap rajzolása.");
|
Console.WriteLine("Téglalap rajzolása.");
|
||||||
|
|
||||||
Console.WriteLine(" .+------+ +------+ ");
|
Console.WriteLine(" .+------+ +------+ ");
|
||||||
Console.WriteLine(" .' | .' | /| /| ");
|
Console.WriteLine(" .' | .' | /| /| ");
|
||||||
Console.WriteLine("+---+--+' | +-+----+ | ");
|
Console.WriteLine("+---+--+' | +-+----+ | ");
|
||||||
Console.WriteLine("| | | | | | | | ");
|
Console.WriteLine("| | | | | | | | ");
|
||||||
Console.WriteLine("| ,+--+---+ | +----+-+ ");
|
Console.WriteLine("| ,+--+---+ | +----+-+ ");
|
||||||
Console.WriteLine("|.' | .' |/ |/ ");
|
Console.WriteLine("|.' | .' |/ |/ ");
|
||||||
Console.WriteLine("+------+' +------+ ");
|
Console.WriteLine("+------+' +------+ ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Alak haromszog = new Alak();
|
Alak haromszog = new Alak();
|
||||||
haromszog.Rajzol();
|
haromszog.Rajzol();
|
||||||
Kocka teglalap = new Kocka();
|
Kocka teglalap = new Kocka();
|
||||||
teglalap.Rajzol();
|
teglalap.Rajzol();
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("b6df9ad0-30c9-4b67-a782-ec20de270e30")]
|
[assembly: Guid("b6df9ad0-30c9-4b67-a782-ec20de270e30")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231129\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{8680F023-48A1-4B35-A2FE-CA763D4310F6}</ProjectGuid>
|
<ProjectGuid>{8680F023-48A1-4B35-A2FE-CA763D4310F6}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp2</RootNamespace>
|
<RootNamespace>ConsoleApp2</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp2</AssemblyName>
|
<AssemblyName>ConsoleApp2</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{8680F023-48A1-4B35-A2FE-CA763D4310F6}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "ConsoleApp2.csproj", "{8680F023-48A1-4B35-A2FE-CA763D4310F6}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
{8680F023-48A1-4B35-A2FE-CA763D4310F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {976941A2-2FA9-4061-8DB9-3B2839BD04D1}
|
SolutionGuid = {976941A2-2FA9-4061-8DB9-3B2839BD04D1}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp2
|
namespace ConsoleApp2
|
||||||
{
|
{
|
||||||
|
|
||||||
public class Sim
|
public class Sim
|
||||||
{
|
{
|
||||||
public static int RandomNumber(int min, int max)
|
public static int RandomNumber(int min, int max)
|
||||||
{
|
{
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
return random.Next(min, max);
|
return random.Next(min, max);
|
||||||
}
|
}
|
||||||
|
|
||||||
//int sorszam, PIN, PUK, egyenleg;
|
//int sorszam, PIN, PUK, egyenleg;
|
||||||
int sorszam = RandomNumber(10000000,100000000);
|
int sorszam = RandomNumber(10000000,100000000);
|
||||||
int PIN = RandomNumber(1000,10000);
|
int PIN = RandomNumber(1000,10000);
|
||||||
int PUK = 1;
|
int PUK = 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool ervenyes;
|
bool ervenyes;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp2")]
|
[assembly: AssemblyTitle("ConsoleApp2")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp2")]
|
[assembly: AssemblyProduct("ConsoleApp2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("8680f023-48a1-4b35-a2fe-ca763d4310f6")]
|
[assembly: Guid("8680f023-48a1-4b35-a2fe-ca763d4310f6")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{E17B7C5B-134B-4587-B9CE-205D24B19C0B}</ProjectGuid>
|
<ProjectGuid>{E17B7C5B-134B-4587-B9CE-205D24B19C0B}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{E17B7C5B-134B-4587-B9CE-205D24B19C0B}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{E17B7C5B-134B-4587-B9CE-205D24B19C0B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Release|Any CPU.Build.0 = Release|Any CPU
|
{E17B7C5B-134B-4587-B9CE-205D24B19C0B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {19BB5E79-DD41-4C13-A99C-C7CD80D321F5}
|
SolutionGuid = {19BB5E79-DD41-4C13-A99C-C7CD80D321F5}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,67 +1,67 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Felhasznalo
|
class Felhasznalo
|
||||||
{
|
{
|
||||||
private string e_mail, jelszo, felhnev;
|
private string e_mail, jelszo, felhnev;
|
||||||
|
|
||||||
public Felhasznalo(string em, string fn, string pw)
|
public Felhasznalo(string em, string fn, string pw)
|
||||||
{
|
{
|
||||||
E_mail = em;
|
E_mail = em;
|
||||||
Jelszo = pw;
|
Jelszo = pw;
|
||||||
Felhnev = fn;
|
Felhnev = fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string E_mail
|
public string E_mail
|
||||||
{
|
{
|
||||||
get { return this.e_mail; }
|
get { return this.e_mail; }
|
||||||
set { this.e_mail = value;}
|
set { this.e_mail = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Jelszo
|
public string Jelszo
|
||||||
{
|
{
|
||||||
get { return this.jelszo; }
|
get { return this.jelszo; }
|
||||||
set { this.jelszo = value; }
|
set { this.jelszo = value; }
|
||||||
}
|
}
|
||||||
public string Felhnev
|
public string Felhnev
|
||||||
{
|
{
|
||||||
get { return this.felhnev; }
|
get { return this.felhnev; }
|
||||||
set { this.felhnev = value; }
|
set { this.felhnev = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private string tulajdonsag;
|
private string tulajdonsag;
|
||||||
|
|
||||||
public string Tulajdonsag
|
public string Tulajdonsag
|
||||||
{
|
{
|
||||||
get { return this.tulajdonsag; }
|
get { return this.tulajdonsag; }
|
||||||
set { this.tulajdonsag = value;}
|
set { this.tulajdonsag = value;}
|
||||||
}
|
}
|
||||||
public void Hozzaad()
|
public void Hozzaad()
|
||||||
{
|
{
|
||||||
Console.WriteLine("Adj meg egy tulajdonságot!");
|
Console.WriteLine("Adj meg egy tulajdonságot!");
|
||||||
Tulajdonsag = Console.ReadLine();
|
Tulajdonsag = Console.ReadLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Kiir()
|
public void Kiir()
|
||||||
{
|
{
|
||||||
Console.WriteLine($"A felhasználó nagyon {Tulajdonsag}.");
|
Console.WriteLine($"A felhasználó nagyon {Tulajdonsag}.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Felhasznalo felh = new Felhasznalo("asd@gmail.com", "KukaLadik", "F3lt0rh3t3tl3n");
|
Felhasznalo felh = new Felhasznalo("asd@gmail.com", "KukaLadik", "F3lt0rh3t3tl3n");
|
||||||
|
|
||||||
felh.Hozzaad();
|
felh.Hozzaad();
|
||||||
felh.Kiir();
|
felh.Kiir();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ConsoleApp1")]
|
[assembly: AssemblyTitle("ConsoleApp1")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("ConsoleApp1")]
|
[assembly: AssemblyProduct("ConsoleApp1")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("e17b7c5b-134b-4587-b9ce-205d24b19c0b")]
|
[assembly: Guid("e17b7c5b-134b-4587-b9ce-205d24b19c0b")]
|
||||||
|
|
||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,4 +1,4 @@
|
||||||
// <autogenerated />
|
// <autogenerated />
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
7f4b213b428f4c013f19137338418ee1f5525793
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.exe.config
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\bin\Debug\ConsoleApp1.pdb
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.AssemblyReference.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.csproj.CoreCompileInputs.cache
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.exe
|
||||||
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
C:\Users\szabomarton\Desktop\C#\20231211\ConsoleApp1\obj\Debug\ConsoleApp1.pdb
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
</startup>
|
</startup>
|
||||||
</configuration>
|
</configuration>
|
|
@ -1,53 +1,53 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}</ProjectGuid>
|
<ProjectGuid>{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}</ProjectGuid>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>ConsoleApp1</RootNamespace>
|
<RootNamespace>ConsoleApp1</RootNamespace>
|
||||||
<AssemblyName>ConsoleApp1</AssemblyName>
|
<AssemblyName>ConsoleApp1</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Xml.Linq" />
|
<Reference Include="System.Xml.Linq" />
|
||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
<Reference Include="System.Net.Http" />
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<Compile Include="Program.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,25 +1,25 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.33529.622
|
VisualStudioVersion = 16.0.33529.622
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1.csproj", "{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Release|Any CPU.Build.0 = Release|Any CPU
|
{F2C2FB8B-DC43-4469-BA78-0D16E382C43A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {7F7388EA-3A55-45EF-89CB-376AA6278216}
|
SolutionGuid = {7F7388EA-3A55-45EF-89CB-376AA6278216}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
|
@ -1,95 +1,95 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ConsoleApp1
|
namespace ConsoleApp1
|
||||||
{
|
{
|
||||||
class Termek
|
class Termek
|
||||||
{
|
{
|
||||||
public int ar, keszlet;
|
public int ar, keszlet;
|
||||||
public string nev;
|
public string nev;
|
||||||
|
|
||||||
public int Ar
|
public int Ar
|
||||||
{
|
{
|
||||||
get { return this.ar; }
|
get { return this.ar; }
|
||||||
set { this.ar = value;}
|
set { this.ar = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Keszlet
|
public int Keszlet
|
||||||
{
|
{
|
||||||
get { return this.keszlet; }
|
get { return this.keszlet; }
|
||||||
set { this.keszlet = value; }
|
set { this.keszlet = value; }
|
||||||
}
|
}
|
||||||
public string Nev
|
public string Nev
|
||||||
{
|
{
|
||||||
get { return this.nev; }
|
get { return this.nev; }
|
||||||
set { this.nev = value; }
|
set { this.nev = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Termek(string name, int price, int db)
|
public Termek(string name, int price, int db)
|
||||||
{
|
{
|
||||||
Nev = name;
|
Nev = name;
|
||||||
Ar = price;
|
Ar = price;
|
||||||
Keszlet = db;
|
Keszlet = db;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Kosar
|
class Kosar
|
||||||
{
|
{
|
||||||
public int osszeg = 0;
|
public int osszeg = 0;
|
||||||
|
|
||||||
public int Osszeg
|
public int Osszeg
|
||||||
{
|
{
|
||||||
get { return this.osszeg; }
|
get { return this.osszeg; }
|
||||||
set { this.osszeg = value;}
|
set { this.osszeg = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddItem(Termek t, int darab)
|
public void AddItem(Termek t, int darab)
|
||||||
{
|
{
|
||||||
if (darab <= t.keszlet)
|
if (darab <= t.keszlet)
|
||||||
{
|
{
|
||||||
Osszeg += t.Ar * darab;
|
Osszeg += t.Ar * darab;
|
||||||
t.Keszlet -= darab;
|
t.Keszlet -= darab;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
Console.WriteLine("A vásárlás ennyi termékre nem valósítható meg.");
|
Console.WriteLine("A vásárlás ennyi termékre nem valósítható meg.");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Price()
|
public void Price()
|
||||||
{
|
{
|
||||||
Console.WriteLine(Osszeg);
|
Console.WriteLine(Osszeg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Stock(Termek t)
|
public void Stock(Termek t)
|
||||||
{
|
{
|
||||||
Console.WriteLine(t.Keszlet);
|
Console.WriteLine(t.Keszlet);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Termek alma = new Termek("alma", 250, 20);
|
Termek alma = new Termek("alma", 250, 20);
|
||||||
Termek korte = new Termek("korte", 300, 10);
|
Termek korte = new Termek("korte", 300, 10);
|
||||||
Termek szolo = new Termek("szolo", 500, 5);
|
Termek szolo = new Termek("szolo", 500, 5);
|
||||||
|
|
||||||
Kosar mykosar = new Kosar();
|
Kosar mykosar = new Kosar();
|
||||||
mykosar.AddItem(alma, 5);
|
mykosar.AddItem(alma, 5);
|
||||||
mykosar.AddItem(korte, 1000);
|
mykosar.AddItem(korte, 1000);
|
||||||
mykosar.AddItem(szolo, 5);
|
mykosar.AddItem(szolo, 5);
|
||||||
|
|
||||||
mykosar.Price();
|
mykosar.Price();
|
||||||
|
|
||||||
mykosar.Stock(alma);
|
mykosar.Stock(alma);
|
||||||
Console.WriteLine(alma.Keszlet);
|
Console.WriteLine(alma.Keszlet);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user