Skip to content

Commit

Permalink
Merge branch 'main' into 11.09.22-Exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-stepien-dev authored Feb 1, 2023
2 parents eaef8b5 + 333856c commit ca562c2
Show file tree
Hide file tree
Showing 104 changed files with 1,064 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@
09.11.22-Exercises/.vs/09.11.22-Exercises/v17/Browse.VC.opendb
09.11.22-Exercises/.vs/09.11.22-Exercises/FileContentIndex/e0fa99c5-4482-469d-87b9-04b2f62c0391.vsidx
09.11.22-Exercises/.vs/09.11.22-Exercises/v17/Browse.VC.db
28.09.22 Pointers/.vs/28.09.22 Pointers/FileContentIndex/62e9f42d-27ae-47d8-ba15-056e28c3754d.vsidx
28.09.22 Pointers/.vs/28.09.22 Pointers/FileContentIndex/read.lock
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/Browse.VC.db
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/Browse.VC.db-wal
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/Browse.VC.db-shm
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/Browse.VC.opendb
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/ipch/AutoPCH/d3499647f6c32424/ARRAYS.ipch
28.09.22 Pointers/.vs/28.09.22 Pointers/FileContentIndex/28907f32-6c92-481d-9a58-50e802e3a656.vsidx
28.09.22 Pointers/.vs/28.09.22 Pointers/v17/Browse.VC.db
Binary file added 02.11.22/.vs/02.11.22/v17/.suo
Binary file not shown.
Binary file added 02.11.22/.vs/02.11.22/v17/Browse.VC.db
Binary file not shown.
Binary file not shown.
31 changes: 31 additions & 0 deletions 02.11.22/02.11.22.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02.11.22", "02.11.22\02.11.22.vcxproj", "{402FB142-3181-4461-866B-A160D419DF63}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{402FB142-3181-4461-866B-A160D419DF63}.Debug|x64.ActiveCfg = Debug|x64
{402FB142-3181-4461-866B-A160D419DF63}.Debug|x64.Build.0 = Debug|x64
{402FB142-3181-4461-866B-A160D419DF63}.Debug|x86.ActiveCfg = Debug|Win32
{402FB142-3181-4461-866B-A160D419DF63}.Debug|x86.Build.0 = Debug|Win32
{402FB142-3181-4461-866B-A160D419DF63}.Release|x64.ActiveCfg = Release|x64
{402FB142-3181-4461-866B-A160D419DF63}.Release|x64.Build.0 = Release|x64
{402FB142-3181-4461-866B-A160D419DF63}.Release|x86.ActiveCfg = Release|Win32
{402FB142-3181-4461-866B-A160D419DF63}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {596B410F-D7A3-4CD5-9EE7-EE7C93DADB01}
EndGlobalSection
EndGlobal
20 changes: 20 additions & 0 deletions 02.11.22/02.11.22/02.11.22.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 02.11.22.cpp : Ten plik zawiera funkcję „main”. W nim rozpoczyna się i kończy wykonywanie programu.
//

#include <iostream>

int main()
{
std::cout << "Hello World!\n";
}

// Uruchomienie programu: Ctrl + F5 lub menu Debugowanie > Uruchom bez debugowania
// Debugowanie programu: F5 lub menu Debugowanie > Rozpocznij debugowanie

// Porady dotyczące rozpoczynania pracy:
// 1. Użyj okna Eksploratora rozwiązań, aby dodać pliki i zarządzać nimi
// 2. Użyj okna programu Team Explorer, aby nawiązać połączenie z kontrolą źródła
// 3. Użyj okna Dane wyjściowe, aby sprawdzić dane wyjściowe kompilacji i inne komunikaty
// 4. Użyj okna Lista błędów, aby zobaczyć błędy
// 5. Wybierz pozycję Projekt > Dodaj nowy element, aby utworzyć nowe pliki kodu, lub wybierz pozycję Projekt > Dodaj istniejący element, aby dodać istniejące pliku kodu do projektu
// 6. Aby w przyszłości ponownie otworzyć ten projekt, przejdź do pozycji Plik > Otwórz > Projekt i wybierz plik sln
135 changes: 135 additions & 0 deletions 02.11.22/02.11.22/02.11.22.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?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>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{402fb142-3181-4461-866b-a160d419df63}</ProjectGuid>
<RootNamespace>My021122</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>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="02.11.22.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
22 changes: 22 additions & 0 deletions 02.11.22/02.11.22/02.11.22.vcxproj.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Pliki źródłowe">
<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="Pliki nagłówkowe">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Pliki zasobów">
<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="02.11.22.cpp">
<Filter>Pliki źródłowe</Filter>
</ClCompile>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions 02.11.22/02.11.22/02.11.22.vcxproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
45 changes: 45 additions & 0 deletions 04.01.22 - exercise/Exercise/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#include <iostream>
#include <cmath>

using namespace std;

struct s1
{
char* nazwa;
float wysokosc;
float szerokosc;
float dlugosc;
float pole;
float objetosc;
};

void show(s1 pudelko1)
{
cout << pudelko1.nazwa << endl;
cout << pudelko1.wysokosc << endl;
cout << pudelko1.szerokosc << endl;
cout << pudelko1.dlugosc << endl;
cout << (round(pudelko1.pole*100))/100 << endl;
cout << (round(pudelko1.objetosc*100))/100 << endl;
}

void calculate()
{

}

int main()
{
pudelko.nazwa = "Super pudelko";
pudelko.wysokosc = 13.9;
pudelko.szerokosc = 13.3;
pudelko.dlugosc = 13.1;
pudelko.pole =
(2 * pudelko.wysokosc * pudelko.szerokosc) +
(2 * pudelko.wysokosc * pudelko.dlugosc) +
(2 * pudelko.szerokosc * pudelko.dlugosc);
pudelko.objetosc = pudelko.wysokosc * pudelko.szerokosc * pudelko.dlugosc;

show(pudelko);
return 0;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added 04.11.22-Classes/.vs/04.11.22-Classes/v17/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 31 additions & 0 deletions 04.11.22-Classes/04.11.22-Classes.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04.11.22-Classes", "04.11.22-Classes\04.11.22-Classes.vcxproj", "{93D18FDC-36FF-4C22-9031-C499B0645D51}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Debug|x64.ActiveCfg = Debug|x64
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Debug|x64.Build.0 = Debug|x64
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Debug|x86.ActiveCfg = Debug|Win32
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Debug|x86.Build.0 = Debug|Win32
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Release|x64.ActiveCfg = Release|x64
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Release|x64.Build.0 = Release|x64
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Release|x86.ActiveCfg = Release|Win32
{93D18FDC-36FF-4C22-9031-C499B0645D51}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5CC98858-88DE-478C-A4ED-3E52A06B4036}
EndGlobalSection
EndGlobal
55 changes: 55 additions & 0 deletions 04.11.22-Classes/04.11.22-Classes/04.11.22-Classes.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#include <iostream>

using namespace std;

class Punkt
{
private:
int x;
int y;

public:
void setX(int x)
{
this->x = x;
}

int getX()
{
return this->x;
}

void setY(int y)
{
this->y = y;
}

int getY()
{
return this->y;
}

Punkt()
{
cout << "Utworzono obiekt\n";

x = 0;
y = 0;
}

~Punkt()
{
cout << "Usunieto obiekt\n";
}
};

int main() {
Punkt p1;

p1.setX(2);
p1.setY(5);

cout << "( " << p1.getX() << ", " << p1.getY() << " )" << endl;

return 0;
}
Loading

0 comments on commit ca562c2

Please sign in to comment.