initial commit

This commit is contained in:
V00DI3
2026-07-29 23:55:01 +03:00
commit 2d8738f8e8
39 changed files with 442 additions and 0 deletions
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,70 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:simpleConsole.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:Player.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:Player.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Player.cpp",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp",
"RelativeDocumentMoniker": "Player.cpp",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp",
"RelativeToolTip": "Player.cpp",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAUAAAALAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2026-07-29T13:49:06.652Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "simpleConsole.cpp",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp",
"RelativeDocumentMoniker": "simpleConsole.cpp",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp",
"RelativeToolTip": "simpleConsole.cpp",
"ViewState": "AgIAAA0AAAAAAAAAAAAQwCQAAABVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2026-07-29T13:42:19.411Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Player.h",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h",
"RelativeDocumentMoniker": "Player.h",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h",
"RelativeToolTip": "Player.h",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
"WhenOpened": "2026-07-29T13:40:15.563Z"
}
]
}
]
}
]
}
@@ -0,0 +1,70 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:simpleConsole.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:Player.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
},
{
"AbsoluteMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
"RelativeMoniker": "D:0:0:{E3FB25BB-D84F-4A22-951B-E1D75D3389B2}|simpleConsole.vcxproj|solutionrelative:Player.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Player.cpp",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp",
"RelativeDocumentMoniker": "Player.cpp",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.cpp",
"RelativeToolTip": "Player.cpp",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAUAAAALAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2026-07-29T13:49:06.652Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "simpleConsole.cpp",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp",
"RelativeDocumentMoniker": "simpleConsole.cpp",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\simpleConsole.cpp",
"RelativeToolTip": "simpleConsole.cpp",
"ViewState": "AgIAAA0AAAAAAAAAAAAQwCQAAABVAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
"WhenOpened": "2026-07-29T13:42:19.411Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Player.h",
"DocumentMoniker": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h",
"RelativeDocumentMoniker": "Player.h",
"ToolTip": "C:\\Users\\re-po\\source\\repos\\simpleConsole\\Player.h",
"RelativeToolTip": "Player.h",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|",
"WhenOpened": "2026-07-29T13:40:15.563Z"
}
]
}
]
}
]
}
+8
View File
@@ -0,0 +1,8 @@
#include "Player.h"
#include <iostream>
using namespace Game;
void Player::jump() {
std::cout << "We are jumping." << std::endl;
}
+15
View File
@@ -0,0 +1,15 @@
/*+=====================================================================
File: Player.h
Summary: Header file for the Player class
========================================================================+*/
#pragma once
namespace Game {
class Player {
public:
void jump();
};
}
View File
+68
View File
@@ -0,0 +1,68 @@
// simpleConsole.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "Player.h"
using namespace Game;
bool running = true;
struct Vector2 {
int x;
int y;
int sum() {
return x + y;
}
};
void loopIndexes() {
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 10; j++) {
std::cout << "J: " << j << std::endl;
running = false;
}
std::cout << "I: " << i << std::endl;
}
}
void heapMemory() {
int stackInt = 10;
int* heapInt = new int(10);
std::cout << "\n\n=========Heap Stuff========= \n";
std::cout << "Stack address: " << &stackInt << std::endl;
std::cout << "Heap address: " << heapInt << std::endl;
std::cout << "Pointer var's own address (also stack): " << &heapInt << std::endl;
std::cout << "============================ \n";
delete heapInt;
}
int main()
{
int health = 100;
std::cout << "Hello World!\n";
std::cout << "Health: " << health << std::endl;
Vector2 vec2 = { 5, 9 };
std::cout << vec2.x << " ";
std::cout << vec2.y << std::endl;
std::cout << vec2.sum() << std::endl;
vec2.x = 99;
std::cout << vec2.x << "\n\n Sum after change\n";
std::cout << vec2.sum() << std::endl;
Player player;
player.jump();
heapMemory();
}
+7
View File
@@ -0,0 +1,7 @@
<Solution>
<Configurations>
<Platform Name="x64" />
<Platform Name="x86" />
</Configurations>
<Project Path="simpleConsole.vcxproj" Id="e3fb25bb-d84f-4a22-951b-e1d75d3389b2" />
</Solution>
+151
View File
@@ -0,0 +1,151 @@
<?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>18.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{e3fb25bb-d84f-4a22-951b-e1d75d3389b2}</ProjectGuid>
<RootNamespace>simpleConsole</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v145</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v145</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>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Manifest>
<EnableSegmentHeap>true</EnableSegmentHeap>
</Manifest>
</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>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Manifest>
<EnableSegmentHeap>true</EnableSegmentHeap>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Manifest>
<EnableSegmentHeap>true</EnableSegmentHeap>
</Manifest>
</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>
<LanguageStandard>stdcpp20</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<Manifest>
<EnableSegmentHeap>true</EnableSegmentHeap>
</Manifest>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Player.cpp" />
<ClCompile Include="simpleConsole.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Player.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
+30
View File
@@ -0,0 +1,30 @@
<?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="simpleConsole.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Player.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Player.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
Binary file not shown.
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ProjectOutputs>
<ProjectOutput>
<FullPath>C:\Users\re-po\source\repos\simpleConsole\x64\Debug\simpleConsole.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
<SatelliteDlls />
<NonRecipeFileRefs />
</Project>
Binary file not shown.
@@ -0,0 +1,2 @@
simpleConsole.cpp
simpleConsole.vcxproj -> C:\Users\re-po\source\repos\simpleConsole\x64\Debug\simpleConsole.exe
Binary file not shown.
@@ -0,0 +1,2 @@
C:\Users\re-po\source\repos\simpleConsole\Player.cpp;C:\Users\re-po\source\repos\simpleConsole\simpleConsole\x64\Debug\Player.obj
C:\Users\re-po\source\repos\simpleConsole\simpleConsole.cpp;C:\Users\re-po\source\repos\simpleConsole\simpleConsole\x64\Debug\simpleConsole.obj
@@ -0,0 +1,2 @@
^C:\USERS\RE-PO\SOURCE\REPOS\SIMPLECONSOLE\SIMPLECONSOLE\X64\DEBUG\PLAYER.OBJ|C:\USERS\RE-PO\SOURCE\REPOS\SIMPLECONSOLE\SIMPLECONSOLE\X64\DEBUG\SIMPLECONSOLE.OBJ
C:\Users\re-po\source\repos\simpleConsole\simpleConsole\x64\Debug\simpleConsole.ilk
@@ -0,0 +1,2 @@
PlatformToolSet=v145:VCToolArchitecture=Native64Bit:VCToolsVersion=14.51.36231:VCServicingVersionATL=14.51.36244:VCServicingVersionCrtHeaders=14.51.36244:VCServicingVersionCompilers=14.51.36252:TargetPlatformVersion=10.0.26100.0:
Debug|x64|C:\Users\re-po\source\repos\simpleConsole\|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.