Add files via upload
This commit is contained in:
139
Prog1/Kereses/Kereses.vcxproj
Normal file
139
Prog1/Kereses/Kereses.vcxproj
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>17.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{31422931-4279-4079-9b73-5abe4a05f7dd}</ProjectGuid>
|
||||
<RootNamespace>Kereses</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<ProjectName>Algoritmusok</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="src\Application.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="src\Header.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
27
Prog1/Kereses/Kereses.vcxproj.filters
Normal file
27
Prog1/Kereses/Kereses.vcxproj.filters
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="src\Application.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="src\Header.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
6
Prog1/Kereses/Kereses.vcxproj.user
Normal file
6
Prog1/Kereses/Kereses.vcxproj.user
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ShowAllFiles>true</ShowAllFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
58
Prog1/Kereses/src/Application.cpp
Normal file
58
Prog1/Kereses/src/Application.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
#include <iostream>
|
||||
#include "Header.h"
|
||||
|
||||
int main() {
|
||||
int arr[10]; //= new int[10];
|
||||
int range = 100;
|
||||
int min = 0;
|
||||
int random = rand() % range + min;
|
||||
|
||||
|
||||
std::cout<< "Range: " << range << std::endl;
|
||||
for (int i = 0; i < 10; i++) {
|
||||
arr[i] = random;
|
||||
random = std::rand() % range;
|
||||
std::cout << i << " " << arr[i] << std::endl;
|
||||
}
|
||||
|
||||
int keresett = 64;
|
||||
|
||||
//std::cin >> keresett;
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (arr[i] == keresett) {
|
||||
std::cout << "Megvan a keresett indexe: " << i << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////
|
||||
//sum
|
||||
int sum = 0;
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
sum += arr[i];
|
||||
}
|
||||
std::cout << "sum: " << sum << std::endl;
|
||||
|
||||
//max keres
|
||||
int max = arr[0];
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (max < arr[i])
|
||||
max = arr[i];
|
||||
}
|
||||
std::cout << "max: " << max << std::endl;
|
||||
|
||||
//min keres
|
||||
int min2 = arr[0];
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (min2 > arr[i])
|
||||
min2 = arr[i];
|
||||
}
|
||||
|
||||
std::cout << "min: " << min2 << std::endl;
|
||||
|
||||
std::cout << egy() <<std::endl;
|
||||
|
||||
std::cout << biggest(1, 2, 3) << std::endl;
|
||||
}
|
||||
23
Prog1/Kereses/src/Header.h
Normal file
23
Prog1/Kereses/src/Header.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
int egy() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int minuszEgy(int num) {
|
||||
return num - 1;
|
||||
}
|
||||
|
||||
int sqr(int num) {
|
||||
return num * num;
|
||||
}
|
||||
|
||||
int biggest(int a, int b, int c) {
|
||||
if (a >= b && a >= c)
|
||||
return a;
|
||||
else if (b >= a && b >= c)
|
||||
return b;
|
||||
else
|
||||
return c;
|
||||
|
||||
}
|
||||
11
Prog1/Kereses/x64/Debug/Algoritmusok.exe.recipe
Normal file
11
Prog1/Kereses/x64/Debug/Algoritmusok.exe.recipe
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>C:\Users\hatva\source\repos\Prog1\x64\Debug\Algoritmusok.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
||||
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.ilk
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.ilk
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.39.33519:TargetPlatformVersion=10.0.22621.0:
|
||||
Debug|x64|C:\Users\hatva\source\repos\Prog1\|
|
||||
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.command.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.command.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.read.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.write.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
1
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/Cl.items.tlog
Normal file
1
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/Cl.items.tlog
Normal file
@@ -0,0 +1 @@
|
||||
C:\Users\hatva\source\repos\Prog1\Kereses\src\Application.cpp;C:\Users\hatva\source\repos\Prog1\Kereses\x64\Debug\Application.obj
|
||||
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.command.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.command.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.read.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.read.1.tlog
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
^C:\USERS\HATVA\SOURCE\REPOS\PROG1\KERESES\X64\DEBUG\APPLICATION.OBJ
|
||||
C:\Users\hatva\source\repos\Prog1\Kereses\x64\Debug\Algoritmusok.ilk
|
||||
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.write.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Algoritmusok.tlog/link.write.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Application.obj
Normal file
BIN
Prog1/Kereses/x64/Debug/Application.obj
Normal file
Binary file not shown.
11
Prog1/Kereses/x64/Debug/Kereses.exe.recipe
Normal file
11
Prog1/Kereses/x64/Debug/Kereses.exe.recipe
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>C:\Users\hatva\source\repos\Prog1\x64\Debug\Kereses.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
||||
BIN
Prog1/Kereses/x64/Debug/Kereses.ilk
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.ilk
Normal file
Binary file not shown.
3
Prog1/Kereses/x64/Debug/Kereses.log
Normal file
3
Prog1/Kereses/x64/Debug/Kereses.log
Normal file
@@ -0,0 +1,3 @@
|
||||
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(531,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (Kereses.vcxproj). This can lead to incorrect clean and rebuild behavior.
|
||||
Application.cpp
|
||||
Kereses.vcxproj -> C:\Users\hatva\source\repos\Prog1\x64\Debug\Algoritmusok.exe
|
||||
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.command.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.command.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.read.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.write.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
1
Prog1/Kereses/x64/Debug/Kereses.tlog/Cl.items.tlog
Normal file
1
Prog1/Kereses/x64/Debug/Kereses.tlog/Cl.items.tlog
Normal file
@@ -0,0 +1 @@
|
||||
C:\Users\hatva\source\repos\Prog1\Kereses\src\Application.cpp;C:\Users\hatva\source\repos\Prog1\Kereses\x64\Debug\Application.obj
|
||||
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.39.33519:TargetPlatformVersion=10.0.22621.0:
|
||||
Debug|x64|C:\Users\hatva\source\repos\Prog1\|
|
||||
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.command.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.command.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.read.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.read.1.tlog
Normal file
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
^C:\USERS\HATVA\SOURCE\REPOS\PROG1\KERESES\X64\DEBUG\APPLICATION.OBJ
|
||||
C:\Users\hatva\source\repos\Prog1\Kereses\x64\Debug\Kereses.ilk
|
||||
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.write.1.tlog
Normal file
BIN
Prog1/Kereses/x64/Debug/Kereses.tlog/link.write.1.tlog
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/vc143.idb
Normal file
BIN
Prog1/Kereses/x64/Debug/vc143.idb
Normal file
Binary file not shown.
BIN
Prog1/Kereses/x64/Debug/vc143.pdb
Normal file
BIN
Prog1/Kereses/x64/Debug/vc143.pdb
Normal file
Binary file not shown.
@@ -7,6 +7,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ciklusok", "Prog1\Prog1.vcx
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tombok", "Tombok\Tombok.vcxproj", "{A8633AE8-3B1B-4C3E-A8C8-C0B6274D974D}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Kereses", "Kereses\Kereses.vcxproj", "{31422931-4279-4079-9B73-5ABE4A05F7DD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
@@ -31,6 +33,14 @@ Global
|
||||
{A8633AE8-3B1B-4C3E-A8C8-C0B6274D974D}.Release|x64.Build.0 = Release|x64
|
||||
{A8633AE8-3B1B-4C3E-A8C8-C0B6274D974D}.Release|x86.ActiveCfg = Release|Win32
|
||||
{A8633AE8-3B1B-4C3E-A8C8-C0B6274D974D}.Release|x86.Build.0 = Release|Win32
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Debug|x64.Build.0 = Debug|x64
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Debug|x86.Build.0 = Debug|Win32
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Release|x64.ActiveCfg = Release|x64
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Release|x64.Build.0 = Release|x64
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Release|x86.ActiveCfg = Release|Win32
|
||||
{31422931-4279-4079-9B73-5ABE4A05F7DD}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
int main() {
|
||||
int t[] = {0,1,2,3,4};
|
||||
|
||||
int length = sizeof(t) / sizeof(t[0]);
|
||||
//int length = sizeof(t) / sizeof(t[0]);
|
||||
int length2 = std::size(t);
|
||||
|
||||
//std::cout << "Length: " << length2 << std::endl;
|
||||
@@ -21,5 +21,25 @@ int main() {
|
||||
std::cout << tomb << std::endl;
|
||||
|
||||
|
||||
|
||||
int max = 100;
|
||||
int min = 0;
|
||||
int range = max - min + 1;
|
||||
int random = rand() % range + min;
|
||||
|
||||
int* array = new int[10];
|
||||
int length3 = sizeof(array);
|
||||
std::cout << length3 << std::endl;
|
||||
|
||||
|
||||
for (int i = 0; i < length3; i++) {
|
||||
array[i] = random;
|
||||
std::cout<< i << ". " << array[i] << std::endl;
|
||||
random = rand() % range + min;
|
||||
}
|
||||
|
||||
free(array);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Prog1/x64/Debug/Algoritmusok.exe
Normal file
BIN
Prog1/x64/Debug/Algoritmusok.exe
Normal file
Binary file not shown.
BIN
Prog1/x64/Debug/Algoritmusok.pdb
Normal file
BIN
Prog1/x64/Debug/Algoritmusok.pdb
Normal file
Binary file not shown.
BIN
Prog1/x64/Debug/Kereses.exe
Normal file
BIN
Prog1/x64/Debug/Kereses.exe
Normal file
Binary file not shown.
BIN
Prog1/x64/Debug/Kereses.pdb
Normal file
BIN
Prog1/x64/Debug/Kereses.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user