Dolgozat1
This commit is contained in:
BIN
.vs/Dolgozat1/v17/.suo
Normal file
BIN
.vs/Dolgozat1/v17/.suo
Normal file
Binary file not shown.
37
Dolgozat1.sln
Normal file
37
Dolgozat1.sln
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.32112.339
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "negativ", "negativ\negativ.csproj", "{E33507A0-A0E6-4B00-B577-FA759F5102F0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "konyv", "konyv\konyv.csproj", "{22EF1D25-E63E-45ED-939D-BA90C7F2A737}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "született", "született\született.csproj", "{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E33507A0-A0E6-4B00-B577-FA759F5102F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E33507A0-A0E6-4B00-B577-FA759F5102F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E33507A0-A0E6-4B00-B577-FA759F5102F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E33507A0-A0E6-4B00-B577-FA759F5102F0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{22EF1D25-E63E-45ED-939D-BA90C7F2A737}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{22EF1D25-E63E-45ED-939D-BA90C7F2A737}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{22EF1D25-E63E-45ED-939D-BA90C7F2A737}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{22EF1D25-E63E-45ED-939D-BA90C7F2A737}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {496D621D-2B15-48DC-9C7E-B389E1CFB314}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
6
konyv/App.config
Normal file
6
konyv/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
32
konyv/Program.cs
Normal file
32
konyv/Program.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace konyv {
|
||||
internal class Program {
|
||||
|
||||
public static bool hosszu_e(int oldalak) {
|
||||
if (oldalak > 150) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void Main(string[] args) {
|
||||
string cim = "";
|
||||
int oldalak = 0;
|
||||
do {
|
||||
Console.Write("Add meg a könyv címét! ");
|
||||
cim = Console.ReadLine();
|
||||
Console.Write("\nAdd meg az oldalak számát! ");
|
||||
if(cim != "")
|
||||
oldalak = Convert.ToInt32(Console.ReadLine());
|
||||
|
||||
if (hosszu_e(oldalak))
|
||||
Console.WriteLine("A {0} hosszú terjedelmű könyv", cim);
|
||||
else Console.WriteLine("A {0} rövid terjedelmű könyv", cim);
|
||||
} while (cim != "");
|
||||
}
|
||||
}
|
||||
}
|
||||
36
konyv/Properties/AssemblyInfo.cs
Normal file
36
konyv/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("konyv")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("konyv")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("22ef1d25-e63e-45ed-939d-ba90c7f2a737")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
BIN
konyv/bin/Debug/konyv.exe
Normal file
BIN
konyv/bin/Debug/konyv.exe
Normal file
Binary file not shown.
6
konyv/bin/Debug/konyv.exe.config
Normal file
6
konyv/bin/Debug/konyv.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
konyv/bin/Debug/konyv.pdb
Normal file
BIN
konyv/bin/Debug/konyv.pdb
Normal file
Binary file not shown.
53
konyv/konyv.csproj
Normal file
53
konyv/konyv.csproj
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{22EF1D25-E63E-45ED-939D-BA90C7F2A737}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>konyv</RootNamespace>
|
||||
<AssemblyName>konyv</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
BIN
konyv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
konyv/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
BIN
konyv/obj/Debug/konyv.csproj.AssemblyReference.cache
Normal file
BIN
konyv/obj/Debug/konyv.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
konyv/obj/Debug/konyv.csproj.CoreCompileInputs.cache
Normal file
1
konyv/obj/Debug/konyv.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
||||
8
konyv/obj/Debug/konyv.csproj.FileListAbsolute.txt
Normal file
8
konyv/obj/Debug/konyv.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\bin\Debug\konyv.exe.config
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\bin\Debug\konyv.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\bin\Debug\konyv.pdb
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\obj\Debug\konyv.csproj.SuggestedBindingRedirects.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\obj\Debug\konyv.csproj.CoreCompileInputs.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\obj\Debug\konyv.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\obj\Debug\konyv.pdb
|
||||
C:\dev\c#\dolgozat\Dolgozat1\konyv\obj\Debug\konyv.csproj.AssemblyReference.cache
|
||||
BIN
konyv/obj/Debug/konyv.exe
Normal file
BIN
konyv/obj/Debug/konyv.exe
Normal file
Binary file not shown.
BIN
konyv/obj/Debug/konyv.pdb
Normal file
BIN
konyv/obj/Debug/konyv.pdb
Normal file
Binary file not shown.
6
negativ/App.config
Normal file
6
negativ/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
27
negativ/Program.cs
Normal file
27
negativ/Program.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace negativ {
|
||||
internal class Program {
|
||||
static void Main(string[] args) {
|
||||
int num1, num2 = 0;
|
||||
|
||||
do {
|
||||
Console.Write("Adj meg egy számot! ");
|
||||
num1 = Convert.ToInt32(Console.ReadLine());
|
||||
Console.Write("\nAdd meg a második számot! ");
|
||||
num2 = Convert.ToInt32(Console.ReadLine());
|
||||
} while (num1 == 0 && num2 == 0);
|
||||
|
||||
if (num1 > 0 && num2 > 0) Console.WriteLine("A két szám közül egyik sem negatív");
|
||||
else if (num1 > 0 && num2 < 0) Console.WriteLine("A két szám közül a második negatív");
|
||||
else if (num1 < 0 && num2 > 0) Console.WriteLine("A két szám közül az első negatív");
|
||||
else if (num1 < 0 && num2 < 0) Console.WriteLine("Mindkét szám negatív");
|
||||
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
negativ/Properties/AssemblyInfo.cs
Normal file
36
negativ/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("negativ")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("negativ")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("e33507a0-a0e6-4b00-b577-fa759f5102f0")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
BIN
negativ/bin/Debug/negativ.exe
Normal file
BIN
negativ/bin/Debug/negativ.exe
Normal file
Binary file not shown.
6
negativ/bin/Debug/negativ.exe.config
Normal file
6
negativ/bin/Debug/negativ.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
negativ/bin/Debug/negativ.pdb
Normal file
BIN
negativ/bin/Debug/negativ.pdb
Normal file
Binary file not shown.
53
negativ/negativ.csproj
Normal file
53
negativ/negativ.csproj
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E33507A0-A0E6-4B00-B577-FA759F5102F0}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>negativ</RootNamespace>
|
||||
<AssemblyName>negativ</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
BIN
negativ/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
BIN
negativ/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
Binary file not shown.
BIN
negativ/obj/Debug/negativ.csproj.AssemblyReference.cache
Normal file
BIN
negativ/obj/Debug/negativ.csproj.AssemblyReference.cache
Normal file
Binary file not shown.
1
negativ/obj/Debug/negativ.csproj.CoreCompileInputs.cache
Normal file
1
negativ/obj/Debug/negativ.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
7f4b213b428f4c013f19137338418ee1f5525793
|
||||
8
negativ/obj/Debug/negativ.csproj.FileListAbsolute.txt
Normal file
8
negativ/obj/Debug/negativ.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\bin\Debug\negativ.exe.config
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\bin\Debug\negativ.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\bin\Debug\negativ.pdb
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\obj\Debug\negativ.csproj.AssemblyReference.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\obj\Debug\negativ.csproj.SuggestedBindingRedirects.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\obj\Debug\negativ.csproj.CoreCompileInputs.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\obj\Debug\negativ.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\negativ\obj\Debug\negativ.pdb
|
||||
BIN
negativ/obj/Debug/negativ.exe
Normal file
BIN
negativ/obj/Debug/negativ.exe
Normal file
Binary file not shown.
BIN
negativ/obj/Debug/negativ.pdb
Normal file
BIN
negativ/obj/Debug/negativ.pdb
Normal file
Binary file not shown.
6
született/App.config
Normal file
6
született/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
63
született/Ember.cs
Normal file
63
született/Ember.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace született {
|
||||
internal class Ember {
|
||||
private string nev;
|
||||
private string foglalkozas;
|
||||
private string nem;
|
||||
private int szerencse_szam;
|
||||
Random random = new Random();
|
||||
|
||||
public Ember(string nev, string foglalkozas, string nem) {
|
||||
this.nev = nev;
|
||||
this.foglalkozas = foglalkozas;
|
||||
this.nem = nem;
|
||||
szerencse_szam = random.Next(1, 51);
|
||||
}
|
||||
|
||||
//Getter setters for variables
|
||||
public string getNev() {
|
||||
return nev;
|
||||
}
|
||||
public void setNev(string nev) {
|
||||
this.nev = nev;
|
||||
}
|
||||
|
||||
public string getFoglalkozas() {
|
||||
return foglalkozas;
|
||||
}
|
||||
public void setFoglalozas(string foglalkozas) {
|
||||
this.foglalkozas = foglalkozas;
|
||||
}
|
||||
|
||||
public string getNem() {
|
||||
return nem;
|
||||
}
|
||||
public void setNem(string nem) {
|
||||
this.nev = nem;
|
||||
}
|
||||
|
||||
public int getSzerencse_szam() {
|
||||
return szerencse_szam;
|
||||
}
|
||||
public void setSzerencse_szam(int szerencse_szam) {
|
||||
this.szerencse_szam = szerencse_szam;
|
||||
}
|
||||
|
||||
//Methods
|
||||
public string isFerfi() {
|
||||
if (nem.Equals("n") || nem.Equals("N"))
|
||||
return "nő";
|
||||
|
||||
return "férfi";
|
||||
}
|
||||
|
||||
public string kiir() {
|
||||
return nev + " egy " + foglalkozas + " " + isFerfi() + " volt, szerencse száma a " + szerencse_szam;
|
||||
}
|
||||
}
|
||||
}
|
||||
48
született/Program.cs
Normal file
48
született/Program.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
|
||||
namespace született {
|
||||
internal class Program {
|
||||
static void Main(string[] args) {
|
||||
Console.Write("Add meg a nevet! ");
|
||||
string nev = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a foglalkozását! ");
|
||||
string foglalkozas = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a nemét!(f/n) ");
|
||||
string nem = Console.ReadLine();
|
||||
Ember ember1 = new Ember(nev, foglalkozas, nem);
|
||||
|
||||
Console.Write("Add meg a nevet! ");
|
||||
nev = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a foglalkozását! ");
|
||||
foglalkozas = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a nemét!(f/n) ");
|
||||
nem = Console.ReadLine();
|
||||
Ember ember2 = new Ember(nev, foglalkozas, nem);
|
||||
|
||||
Console.Write("Add meg a nevet! ");
|
||||
nev = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a foglalkozását! ");
|
||||
foglalkozas = Console.ReadLine();
|
||||
Console.Write("\nAdd meg a nemét!(f/n) ");
|
||||
nem = Console.ReadLine();
|
||||
Ember ember3 = new Ember(nev, foglalkozas, nem);
|
||||
|
||||
Console.WriteLine(ember1.kiir());
|
||||
Console.WriteLine(ember2.kiir());
|
||||
Console.WriteLine(ember3.kiir());
|
||||
|
||||
StreamWriter writer = new StreamWriter(@"szuletettki.txt", false, Encoding.Default);
|
||||
writer.WriteLine(ember1.kiir());
|
||||
writer.WriteLine(ember2.kiir());
|
||||
writer.WriteLine(ember3.kiir());
|
||||
writer.Close();
|
||||
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
született/Properties/AssemblyInfo.cs
Normal file
36
született/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("született")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("született")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("2fac5a69-b38a-4145-abdb-b5e8e76fafee")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
3
született/bin/Debug/szuletettki.txt
Normal file
3
született/bin/Debug/szuletettki.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
Kiss Pista egy sofor férfi volt, szerencse száma a 50
|
||||
Nagy anna egy kovacs nő volt, szerencse száma a 20
|
||||
Nagy Lajos egy lls férfi volt, szerencse száma a 44
|
||||
BIN
született/bin/Debug/született.exe
Normal file
BIN
született/bin/Debug/született.exe
Normal file
Binary file not shown.
6
született/bin/Debug/született.exe.config
Normal file
6
született/bin/Debug/született.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
született/bin/Debug/született.pdb
Normal file
BIN
született/bin/Debug/született.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
867b10ce2078e887d681e45ddfff78ccfca05c60
|
||||
@@ -0,0 +1,7 @@
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\bin\Debug\született.exe.config
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\bin\Debug\született.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\bin\Debug\született.pdb
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\obj\Debug\született.csproj.SuggestedBindingRedirects.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\obj\Debug\született.csproj.CoreCompileInputs.cache
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\obj\Debug\született.exe
|
||||
C:\dev\c#\dolgozat\Dolgozat1\született\obj\Debug\született.pdb
|
||||
BIN
született/obj/Debug/született.exe
Normal file
BIN
született/obj/Debug/született.exe
Normal file
Binary file not shown.
BIN
született/obj/Debug/született.pdb
Normal file
BIN
született/obj/Debug/született.pdb
Normal file
Binary file not shown.
54
született/született.csproj
Normal file
54
született/született.csproj
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{2FAC5A69-B38A-4145-ABDB-B5E8E76FAFEE}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>született</RootNamespace>
|
||||
<AssemblyName>született</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Ember.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user