-
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 pull request #5 from lukasz-stepien-dev/11.09.22-Exercises
11.09.22 exercises
- Loading branch information
Showing
27 changed files
with
257 additions
and
1 deletion.
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 added
BIN
+11.3 KB
...rcises/.vs/09.11.22-Exercises/FileContentIndex/6d6f363a-aa21-4293-ae0e-de36082a5e7c.vsidx
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+35.6 MB
...xercises/.vs/09.11.22-Exercises/v17/ipch/AutoPCH/56ea972050f85d2b/09.11.22-EXERCISES.ipch
Binary file not shown.
Binary file added
BIN
+35.6 MB
...xercises/.vs/09.11.22-Exercises/v17/ipch/AutoPCH/bef4a6d5be627377/09.11.22-EXERCISES.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}") = "09.11.22-Exercises", "09.11.22-Exercises\09.11.22-Exercises.vcxproj", "{60CE0BA0-269B-4521-9A32-B5E025AFB316}" | ||
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 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Debug|x64.ActiveCfg = Debug|x64 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Debug|x64.Build.0 = Debug|x64 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Debug|x86.Build.0 = Debug|Win32 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Release|x64.ActiveCfg = Release|x64 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Release|x64.Build.0 = Release|x64 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Release|x86.ActiveCfg = Release|Win32 | ||
{60CE0BA0-269B-4521-9A32-B5E025AFB316}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {C16674E0-CB09-4F17-A06A-4E5FA153D0F0} | ||
EndGlobalSection | ||
EndGlobal |
40 changes: 40 additions & 0 deletions
40
09.11.22-Exercises/09.11.22-Exercises/09.11.22-Exercises.cpp
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,40 @@ | ||
#include <iostream> | ||
#include <cmath> | ||
|
||
// Łukasz Stępień | ||
|
||
using namespace std; | ||
|
||
|
||
|
||
// | ||
float ex1(int brutto, float tax) | ||
{ | ||
float taxPct = 1; | ||
taxPct -= tax / 100; | ||
return brutto * taxPct; | ||
} | ||
|
||
int main() | ||
{ | ||
int brutto = 0, tax = 0; | ||
cout << "Podaj kwote brutto: "; | ||
cin >> brutto; | ||
cout << "Podaj podatek: "; | ||
cin >> tax; | ||
cout << "Cena netto: " << ex1(brutto, tax) << endl; | ||
|
||
string products[] = { "Ogorki", "Pomidory", "Ziemniaki", "Jablka" }; | ||
int idProduct = 0; | ||
cout << "Podaj numer produkty, ktory chcesz wyświetlis" << endl; | ||
cin >> idProduct; | ||
idProduct--; | ||
while (idProduct > 3 || idProduct < 0) | ||
{ | ||
cout << "Podaj poprawna wartosc: "; | ||
cin >> idProduct; | ||
idProduct--; | ||
} | ||
cout << "Wybrany produkt: " << products[idProduct]; | ||
} | ||
|
135 changes: 135 additions & 0 deletions
135
09.11.22-Exercises/09.11.22-Exercises/09.11.22-Exercises.vcxproj
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>{60ce0ba0-269b-4521-9a32-b5e025afb316}</ProjectGuid> | ||
<RootNamespace>My091122Exercises</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="09.11.22-Exercises.cpp" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
22 changes: 22 additions & 0 deletions
22
09.11.22-Exercises/09.11.22-Exercises/09.11.22-Exercises.vcxproj.filters
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="09.11.22-Exercises.cpp"> | ||
<Filter>Pliki źródłowe</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
</Project> |
4 changes: 4 additions & 0 deletions
4
09.11.22-Exercises/09.11.22-Exercises/09.11.22-Exercises.vcxproj.user
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> |
11 changes: 11 additions & 0 deletions
11
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22-Exercises.exe.recipe
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,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<ProjectOutputs> | ||
<ProjectOutput> | ||
<FullPath>C:\Users\ŁukaszStępień2021_20\OneDrive - Zespół Szkół Politechnicznych\szkolne\Przedmioty Szkolne GitHub\PPAD\09.11.22-Exercises\x64\Debug\09.11.22-Exercises.exe</FullPath> | ||
</ProjectOutput> | ||
</ProjectOutputs> | ||
<ContentFiles /> | ||
<SatelliteDlls /> | ||
<NonRecipeFileRefs /> | ||
</Project> |
Binary file added
BIN
+1.1 MB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22-Exercises.ilk
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22-Exercises.log
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,3 @@ | ||
09.11.22-Exercises.cpp | ||
C:\Users\ŁukaszStępień2021_20\OneDrive - Zespół Szkół Politechnicznych\szkolne\Przedmioty Szkolne GitHub\PPAD\09.11.22-Exercises\09.11.22-Exercises\09.11.22-Exercises.cpp(25,43): warning C4244: "argument": konwersja z "int" do "float", możliwa utrata danych | ||
09.11.22-Exercises.vcxproj -> C:\Users\ŁukaszStępień2021_20\OneDrive - Zespół Szkół Politechnicznych\szkolne\Przedmioty Szkolne GitHub\PPAD\09.11.22-Exercises\x64\Debug\09.11.22-Exercises.exe |
Binary file added
BIN
+202 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22-Exercises.obj
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...ses/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/09.11.22-Exercises.lastbuildstate
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,2 @@ | ||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: | ||
Debug|x64|C:\Users\ŁukaszStępień2021_20\OneDrive - Zespół Szkół Politechnicznych\szkolne\Przedmioty Szkolne GitHub\PPAD\09.11.22-Exercises\| |
Binary file added
BIN
+1.18 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/CL.command.1.tlog
Binary file not shown.
Binary file added
BIN
+19.4 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/CL.read.1.tlog
Binary file not shown.
Binary file added
BIN
+1.36 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/CL.write.1.tlog
Binary file not shown.
Binary file added
BIN
+2.11 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/link.command.1.tlog
Binary file not shown.
Binary file added
BIN
+4.36 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/link.read.1.tlog
Binary file not shown.
Binary file added
BIN
+1.35 KB
09.11.22-Exercises/09.11.22-Exercises/x64/Debug/09.11.22.60ce0ba0.tlog/link.write.1.tlog
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.