This commit is contained in:
2022-02-14 13:05:20 +01:00
parent 1593958633
commit 29f6fa3aa8
19 changed files with 163 additions and 5 deletions

Binary file not shown.

6
MinMax/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>

53
MinMax/MinMax.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>{8812376D-8182-4569-972D-A83C8239CA36}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>MinMax</RootNamespace>
<AssemblyName>MinMax</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>

40
MinMax/Program.cs Normal file
View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MinMax {
class Program {
static void Main(string[] args) {
Random random = new Random();
int[] arr = new int[1000];
//random elemek hozzaadasa a tombhoz
for (int i = 0; i < arr.Length; i++) {
arr[i] = random.Next(Int32.MinValue,Int32.MaxValue);
}
//tomb elemeinek kiiratasa
/*for (int i = 0; i < arr.Length; i++) {
Console.WriteLine(arr[i]);
}*/
int min = Int32.MaxValue;
int min_i = -1;
for (int i = 0; i < arr.Length; i++) {
if(min > arr[i]) {
min = arr[i];
min_i = i;
}
}
Console.ReadKey();
}
}
}

View 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("MinMax")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MinMax")]
[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("8812376d-8182-4569-972d-a83c8239ca36")]
// 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
MinMax/bin/Debug/MinMax.exe Normal file

Binary file not shown.

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>

BIN
MinMax/bin/Debug/MinMax.pdb Normal file

Binary file not shown.

View File

@@ -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.

View File

@@ -0,0 +1 @@
7f4b213b428f4c013f19137338418ee1f5525793

View File

@@ -0,0 +1,7 @@
C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.exe.config
C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.exe
C:\dev\c#\c-sharp\MinMax\bin\Debug\MinMax.pdb
C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.csproj.AssemblyReference.cache
C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.exe
C:\dev\c#\c-sharp\MinMax\obj\Debug\MinMax.pdb

BIN
MinMax/obj/Debug/MinMax.exe Normal file

Binary file not shown.

BIN
MinMax/obj/Debug/MinMax.pdb Normal file

Binary file not shown.

View File

@@ -1,7 +1,7 @@
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.AssemblyReference.cache
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.exe.config
C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.exe
C:\dev\c#\c-sharp\Szamkitalalo\bin\Debug\Szamkitalalo.pdb
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.AssemblyReference.cache
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.exe
C:\dev\c#\c-sharp\Szamkitalalo\obj\Debug\Szamkitalalo.pdb

View File

@@ -1,12 +1,14 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
# Visual Studio Version 16
VisualStudioVersion = 16.0.32106.194
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "c-sharp", "c-sharp\c-sharp.csproj", "{A6876A09-53D2-47AF-A648-81BAD791D19D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Szamkitalalo", "Szamkitalalo\Szamkitalalo.csproj", "{B1FFC5C5-05EB-454B-BC64-505E246CA686}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinMax", "MinMax\MinMax.csproj", "{8812376D-8182-4569-972D-A83C8239CA36}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
{B1FFC5C5-05EB-454B-BC64-505E246CA686}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1FFC5C5-05EB-454B-BC64-505E246CA686}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1FFC5C5-05EB-454B-BC64-505E246CA686}.Release|Any CPU.Build.0 = Release|Any CPU
{8812376D-8182-4569-972D-A83C8239CA36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8812376D-8182-4569-972D-A83C8239CA36}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8812376D-8182-4569-972D-A83C8239CA36}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8812376D-8182-4569-972D-A83C8239CA36}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@@ -1,7 +1,6 @@
C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.exe.config
C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.exe
C:\dev\c#\c-sharp\c-sharp\bin\Debug\c-sharp.pdb
C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.csproj.AssemblyReference.cache
C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.csproj.CoreCompileInputs.cache
C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.exe
C:\dev\c#\c-sharp\c-sharp\obj\Debug\c-sharp.pdb