-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 11.09.22-Exercises
- Loading branch information
Showing
104 changed files
with
1,064 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.6 MB
02.11.22/.vs/02.11.22/v17/ipch/AutoPCH/234c057e41a82dc7/02.11.22.ipch
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+8.16 KB
...-Classes/.vs/04.11.22-Classes/FileContentIndex/4544c816-430b-4ed9-bdca-26f4c1ccd86e.vsidx
Binary file not shown.
Binary file added
BIN
+127 Bytes
...-Classes/.vs/04.11.22-Classes/FileContentIndex/5de0408a-111c-4e88-a575-cdc58a1f57a0.vsidx
Binary file not shown.
Binary file added
BIN
+9.82 KB
...-Classes/.vs/04.11.22-Classes/FileContentIndex/cd46ddbe-043f-4f91-a4e4-4fa6b9ed26ea.vsidx
Binary file not shown.
Binary file added
BIN
+923 Bytes
...-Classes/.vs/04.11.22-Classes/FileContentIndex/d873f50f-ffc2-4848-af34-b38725b56bd8.vsidx
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.6 MB
04.11.22-Classes/.vs/04.11.22-Classes/v17/ipch/AutoPCH/12a3436a32af6034/ZADANIE.ipch
Binary file not shown.
Binary file added
BIN
+35.6 MB
...1.22-Classes/.vs/04.11.22-Classes/v17/ipch/AutoPCH/28b7b851955e3727/04.11.22-CLASSES.ipch
Binary file not shown.
Binary file added
BIN
+35.6 MB
...1.22-Classes/.vs/04.11.22-Classes/v17/ipch/AutoPCH/940da264ed414aa7/04.11.22-CLASSES.ipch
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.