Add project files.

This commit is contained in:
trepakszabolcs 2024-12-17 14:35:08 +01:00
parent 92eed647bf
commit 685e902916
5 changed files with 186 additions and 0 deletions

6
App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

69
Program.cs Normal file
View File

@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Program
{
internal class Program
{
static void Main(string[] args)
{
//---------------------------\\
//Egyszerű for ciklus
Random rnd = new Random();
for (int i = 0; i < 5; i ++)
{
int lszam = rnd.Next(1,91);
Console.WriteLine($"{i+1}. lottószám: {lszam}");
}
//---------------------------\\
//Számlálás visszafele
for (int i = 20; i > 0; i--)
{
Console.Write($"{i} - ");
}
Console.WriteLine();
//---------------------------\\
//while ciklusszerkezet - elöltesztelő
string beiras = "";
while (beiras != "stop")
{
Console.WriteLine("While belseje. Hány perc van hátra?");
beiras = Console.ReadLine();
}
Console.WriteLine("Kilépés a programból.");
//---------------------------\\
//do-while ciklusszerkeszet - hátultesztelő
do
{
Console.WriteLine("\t1. Megnyitás\n\t2. Mentés\n\t3. Importálás\n\t4. Kilépés\n\nVáélasszon! (1-4)");
beiras = Console.ReadLine();
switch (beiras)
{
case "1":
Console.WriteLine("A megnyitás menüpont");
break;
case "2":
Console.WriteLine("A mentés menüpont");
break;
case "3":
Console.WriteLine("A importálás menüpont");
break;
}
}
while (beiras != "4");
//---------------------------\\
//collection adatszerkezetek bejárása
//tömb bejárása ciklussal
int[] adatok1 = { 3, 23, 44, 49, 81 };
foreach (var szam in adatok1)
{
Console.WriteLine(szam);
}
Console.WriteLine();
}
}
}

53
Program.csproj Normal file
View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Program</RootNamespace>
<AssemblyName>Program</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>

25
Program.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Program", "Program.csproj", "{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3F11193-AFD6-412A-917F-4C7C9CCC7EFC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CDC44F1D-0012-4109-8B2A-B80EDA3FDC71}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,33 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Program")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Program")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("a3f11193-afd6-412a-917f-4c7c9ccc7efc")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]