diff --git a/Lab2_1/Debug/Lab2_1.exe b/Lab2_1/Debug/Lab2_1.exe new file mode 100644 index 0000000..94e49e8 Binary files /dev/null and b/Lab2_1/Debug/Lab2_1.exe differ diff --git a/Lab2_1/Debug/Lab2_1.ilk b/Lab2_1/Debug/Lab2_1.ilk new file mode 100644 index 0000000..b9da708 Binary files /dev/null and b/Lab2_1/Debug/Lab2_1.ilk differ diff --git a/Lab2_1/Debug/Lab2_1.pdb b/Lab2_1/Debug/Lab2_1.pdb new file mode 100644 index 0000000..d1ebef7 Binary files /dev/null and b/Lab2_1/Debug/Lab2_1.pdb differ diff --git a/Lab2_1/Lab2_1.sdf b/Lab2_1/Lab2_1.sdf new file mode 100644 index 0000000..330b67e Binary files /dev/null and b/Lab2_1/Lab2_1.sdf differ diff --git a/Lab2_1/Lab2_1.sln b/Lab2_1/Lab2_1.sln new file mode 100644 index 0000000..84ddeb4 --- /dev/null +++ b/Lab2_1/Lab2_1.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab2_1", "Lab2_1\Lab2_1.vcxproj", "{88A9ACD8-410D-40F1-A9B6-BE8B5547F932}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {88A9ACD8-410D-40F1-A9B6-BE8B5547F932}.Debug|Win32.ActiveCfg = Debug|Win32 + {88A9ACD8-410D-40F1-A9B6-BE8B5547F932}.Debug|Win32.Build.0 = Debug|Win32 + {88A9ACD8-410D-40F1-A9B6-BE8B5547F932}.Release|Win32.ActiveCfg = Release|Win32 + {88A9ACD8-410D-40F1-A9B6-BE8B5547F932}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Lab2_1/Lab2_1.v12.suo b/Lab2_1/Lab2_1.v12.suo new file mode 100644 index 0000000..6bf21a0 Binary files /dev/null and b/Lab2_1/Lab2_1.v12.suo differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.log b/Lab2_1/Lab2_1/Debug/Lab2_1.log new file mode 100644 index 0000000..fd75058 --- /dev/null +++ b/Lab2_1/Lab2_1/Debug/Lab2_1.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 6:24:34 AM. +Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Lab2_1\Lab2_1.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\Lab2_1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt Lab2_1.cpp + Lab2_1.cpp +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_1\lab2_1\lab2_1.cpp(19): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.lib" /MACHINE:X86 Debug\Lab2_1.obj + Debug\stdafx.obj + Lab2_1.vcxproj -> C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.exe +Done Building Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\Lab2_1\Lab2_1.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:00.39 diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.obj b/Lab2_1/Lab2_1/Debug/Lab2_1.obj new file mode 100644 index 0000000..6dfc694 Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.obj differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.pch b/Lab2_1/Lab2_1/Debug/Lab2_1.pch new file mode 100644 index 0000000..4d8fbfd Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.pch differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.read.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..31e997f Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.read.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.write.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..61852a6 Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/CL.write.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/Lab2_1.lastbuildstate b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/Lab2_1.lastbuildstate new file mode 100644 index 0000000..e39b751 --- /dev/null +++ b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/Lab2_1.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_1\| diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/cl.command.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/cl.command.1.tlog new file mode 100644 index 0000000..201a1d4 Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/cl.command.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.command.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.command.1.tlog new file mode 100644 index 0000000..6b3890f Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.command.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.read.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.read.1.tlog new file mode 100644 index 0000000..1952abe Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.read.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.write.1.tlog b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.write.1.tlog new file mode 100644 index 0000000..7d3bbfa Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/Lab2_1.tlog/link.write.1.tlog differ diff --git a/Lab2_1/Lab2_1/Debug/stdafx.obj b/Lab2_1/Lab2_1/Debug/stdafx.obj new file mode 100644 index 0000000..bc425e8 Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/stdafx.obj differ diff --git a/Lab2_1/Lab2_1/Debug/vc120.idb b/Lab2_1/Lab2_1/Debug/vc120.idb new file mode 100644 index 0000000..d8e68fb Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/vc120.idb differ diff --git a/Lab2_1/Lab2_1/Debug/vc120.pdb b/Lab2_1/Lab2_1/Debug/vc120.pdb new file mode 100644 index 0000000..893bf94 Binary files /dev/null and b/Lab2_1/Lab2_1/Debug/vc120.pdb differ diff --git a/Lab2_1/Lab2_1/Lab2_1.cpp b/Lab2_1/Lab2_1/Lab2_1.cpp new file mode 100644 index 0000000..1740c7c --- /dev/null +++ b/Lab2_1/Lab2_1/Lab2_1.cpp @@ -0,0 +1,41 @@ +// Lab2_1.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +#include +using namespace std; + +/***************************************************************** +Made by: Tyler Kapusniak - +Made on: 1/23/15 - +******************************************************************/ + +int main() +{ + /*variables!*/ + srand(time(0)); + int count = 0; + int HeadsOrTails = rand() % 2; + int Heads = 0; + int Tails = 0; + /*while loop!*/ + while (count != 100) { + int HeadsOrTails = rand() % 2; + if (HeadsOrTails == 0) { + Heads++; + } + else{ + Tails++; + } + count++; + } + cout << "You got " << Heads << " flips that landed on Heads!" << endl; + cout << "And also " << Tails << " flips that landed on Tails!" << endl; + + getchar(); + return 0; +} + diff --git a/Lab2_1/Lab2_1/Lab2_1.vcxproj b/Lab2_1/Lab2_1/Lab2_1.vcxproj new file mode 100644 index 0000000..ba55699 --- /dev/null +++ b/Lab2_1/Lab2_1/Lab2_1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {88A9ACD8-410D-40F1-A9B6-BE8B5547F932} + Win32Proj + Lab2_1 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/Lab2_1/Lab2_1/Lab2_1.vcxproj.filters b/Lab2_1/Lab2_1/Lab2_1.vcxproj.filters new file mode 100644 index 0000000..0439c00 --- /dev/null +++ b/Lab2_1/Lab2_1/Lab2_1.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/Lab2_1/Lab2_1/ReadMe.txt b/Lab2_1/Lab2_1/ReadMe.txt new file mode 100644 index 0000000..20eb6af --- /dev/null +++ b/Lab2_1/Lab2_1/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : Lab2_1 Project Overview +======================================================================== + +AppWizard has created this Lab2_1 application for you. + +This file contains a summary of what you will find in each of the files that +make up your Lab2_1 application. + + +Lab2_1.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +Lab2_1.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +Lab2_1.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named Lab2_1.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/Lab2_1/Lab2_1/stdafx.cpp b/Lab2_1/Lab2_1/stdafx.cpp new file mode 100644 index 0000000..29ffd9e --- /dev/null +++ b/Lab2_1/Lab2_1/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// Lab2_1.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/Lab2_1/Lab2_1/stdafx.h b/Lab2_1/Lab2_1/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/Lab2_1/Lab2_1/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/Lab2_1/Lab2_1/targetver.h b/Lab2_1/Lab2_1/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/Lab2_1/Lab2_1/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/Lab2_1/ipch/lab2_1-ebba4965/lab2_1-f70d849d.ipch b/Lab2_1/ipch/lab2_1-ebba4965/lab2_1-f70d849d.ipch new file mode 100644 index 0000000..031cfe1 Binary files /dev/null and b/Lab2_1/ipch/lab2_1-ebba4965/lab2_1-f70d849d.ipch differ diff --git a/Lab2_2/Debug/Lab2_2.exe b/Lab2_2/Debug/Lab2_2.exe new file mode 100644 index 0000000..808a031 Binary files /dev/null and b/Lab2_2/Debug/Lab2_2.exe differ diff --git a/Lab2_2/Debug/Lab2_2.ilk b/Lab2_2/Debug/Lab2_2.ilk new file mode 100644 index 0000000..c0d0724 Binary files /dev/null and b/Lab2_2/Debug/Lab2_2.ilk differ diff --git a/Lab2_2/Debug/Lab2_2.pdb b/Lab2_2/Debug/Lab2_2.pdb new file mode 100644 index 0000000..8fb8fd7 Binary files /dev/null and b/Lab2_2/Debug/Lab2_2.pdb differ diff --git a/Lab2_2/Lab2_2.sdf b/Lab2_2/Lab2_2.sdf new file mode 100644 index 0000000..12cf4cb Binary files /dev/null and b/Lab2_2/Lab2_2.sdf differ diff --git a/Lab2_2/Lab2_2.sln b/Lab2_2/Lab2_2.sln new file mode 100644 index 0000000..18f05d6 --- /dev/null +++ b/Lab2_2/Lab2_2.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab2_2", "Lab2_2\Lab2_2.vcxproj", "{4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0}.Debug|Win32.ActiveCfg = Debug|Win32 + {4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0}.Debug|Win32.Build.0 = Debug|Win32 + {4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0}.Release|Win32.ActiveCfg = Release|Win32 + {4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Lab2_2/Lab2_2.v12.suo b/Lab2_2/Lab2_2.v12.suo new file mode 100644 index 0000000..20d0e41 Binary files /dev/null and b/Lab2_2/Lab2_2.v12.suo differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.Build.CppClean.log b/Lab2_2/Lab2_2/Debug/Lab2_2.Build.CppClean.log new file mode 100644 index 0000000..4efacb9 --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.Build.CppClean.log @@ -0,0 +1,7 @@ +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.pch +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\vc120.pdb +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\vc120.idb +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\stdafx.obj +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.command.1.tlog +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.read.1.tlog +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.write.1.tlog diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.log b/Lab2_2/Lab2_2/Debug/Lab2_2.log new file mode 100644 index 0000000..685bf04 --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 8:04:42 AM. +Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Lab2_2\Lab2_2.vcxproj" on node 2 (Build target(s)). +ClCompile: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\CL.exe /c /ZI /nologo /W3 /WX- /sdl /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /Gm /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yu"stdafx.h" /Fp"Debug\Lab2_2.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt Lab2_2.cpp + Lab2_2.cpp +c:\users\ieuser\documents\visual studio 2013\projects\cpp_lab_02\lab2_2\lab2_2\lab2_2.cpp(23): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.lib" /MACHINE:X86 Debug\Lab2_2.obj + Debug\stdafx.obj + Lab2_2.vcxproj -> C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.exe +Done Building Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\Lab2_2\Lab2_2.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.12 diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.obj b/Lab2_2/Lab2_2/Debug/Lab2_2.obj new file mode 100644 index 0000000..a01c2a0 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.obj differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.pch b/Lab2_2/Lab2_2/Debug/Lab2_2.pch new file mode 100644 index 0000000..4787420 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.pch differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.read.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9a06c94 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.read.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.write.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.write.1.tlog new file mode 100644 index 0000000..312c0c7 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/CL.write.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/Lab2_2.lastbuildstate b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/Lab2_2.lastbuildstate new file mode 100644 index 0000000..ae492fe --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/Lab2_2.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Visual Studio 2013\Projects\Cpp_Lab_02\Lab2_2\| diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/cl.command.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/cl.command.1.tlog new file mode 100644 index 0000000..7779b2c Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/cl.command.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.command.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.command.1.tlog new file mode 100644 index 0000000..9bd8064 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.command.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.read.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.read.1.tlog new file mode 100644 index 0000000..40484b5 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.read.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.write.1.tlog b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.write.1.tlog new file mode 100644 index 0000000..62f94bc Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/Lab2_2.tlog/link.write.1.tlog differ diff --git a/Lab2_2/Lab2_2/Debug/stdafx.obj b/Lab2_2/Lab2_2/Debug/stdafx.obj new file mode 100644 index 0000000..92ccea2 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/stdafx.obj differ diff --git a/Lab2_2/Lab2_2/Debug/vc120.idb b/Lab2_2/Lab2_2/Debug/vc120.idb new file mode 100644 index 0000000..5ec212c Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/vc120.idb differ diff --git a/Lab2_2/Lab2_2/Debug/vc120.pdb b/Lab2_2/Lab2_2/Debug/vc120.pdb new file mode 100644 index 0000000..77a27c4 Binary files /dev/null and b/Lab2_2/Lab2_2/Debug/vc120.pdb differ diff --git a/Lab2_2/Lab2_2/Lab2_2.cpp b/Lab2_2/Lab2_2/Lab2_2.cpp new file mode 100644 index 0000000..27933e0 --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.cpp @@ -0,0 +1,50 @@ +// Lab2_2.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +using namespace std; + +/********************************** +Created by: Tyler Kapusniak | +Date Created: 1/23/15 | +**********************************/ + +int main() +{ + /*Explaining the game!*/ + cout << "\t Welcome to 'Guess my number'!" << endl; + cout << "I'm thinking of a number between 1 and 100" << endl; + cout << "Try to guess it!" << endl; + + /*Setting inital values*/ + srand(time(0)); + int guess = NULL; + int Highest = 100; + int Lowest = 0; + int RandNumb = rand() % 100 + 1; + cout << "What is your guess? "; + cin >> guess; + while (guess != RandNumb) { + if (guess > RandNumb) { + cout << "Lower "; + } + else { + cout << "Higher "; + } + guess++; + cout << "What is your guess? "; + cin >> guess; + } + if (guess == RandNumb) { + cout << "You guess correct! Good job!" << endl; + cout << "It toook you " << guess << " tries to guess corectly!"; + } + + getchar(); + getchar(); + return 0; +} + diff --git a/Lab2_2/Lab2_2/Lab2_2.vcxproj b/Lab2_2/Lab2_2/Lab2_2.vcxproj new file mode 100644 index 0000000..56830c0 --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4418B9B6-F4ED-4A8C-8668-E09BB9B95DD0} + Win32Proj + Lab2_2 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/Lab2_2/Lab2_2/Lab2_2.vcxproj.filters b/Lab2_2/Lab2_2/Lab2_2.vcxproj.filters new file mode 100644 index 0000000..bf4f4cc --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/Lab2_2/Lab2_2/ReadMe.txt b/Lab2_2/Lab2_2/ReadMe.txt new file mode 100644 index 0000000..050b236 --- /dev/null +++ b/Lab2_2/Lab2_2/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : Lab2_2 Project Overview +======================================================================== + +AppWizard has created this Lab2_2 application for you. + +This file contains a summary of what you will find in each of the files that +make up your Lab2_2 application. + + +Lab2_2.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +Lab2_2.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +Lab2_2.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named Lab2_2.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/Lab2_2/Lab2_2/stdafx.cpp b/Lab2_2/Lab2_2/stdafx.cpp new file mode 100644 index 0000000..cbe9971 --- /dev/null +++ b/Lab2_2/Lab2_2/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// Lab2_2.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/Lab2_2/Lab2_2/stdafx.h b/Lab2_2/Lab2_2/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/Lab2_2/Lab2_2/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/Lab2_2/Lab2_2/targetver.h b/Lab2_2/Lab2_2/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/Lab2_2/Lab2_2/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/Lab2_2/ipch/lab2_2-34a17f08/lab2_2-f71f9d1e.ipch b/Lab2_2/ipch/lab2_2-34a17f08/lab2_2-f71f9d1e.ipch new file mode 100644 index 0000000..6a601e9 Binary files /dev/null and b/Lab2_2/ipch/lab2_2-34a17f08/lab2_2-f71f9d1e.ipch differ diff --git a/Lab2_3/Lab2_3.sdf b/Lab2_3/Lab2_3.sdf new file mode 100644 index 0000000..12e2f8e Binary files /dev/null and b/Lab2_3/Lab2_3.sdf differ diff --git a/Lab2_3/Lab2_3.sln b/Lab2_3/Lab2_3.sln new file mode 100644 index 0000000..1186fba --- /dev/null +++ b/Lab2_3/Lab2_3.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30501.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Lab2_3", "Lab2_3\Lab2_3.vcxproj", "{AA943128-875E-46F2-9581-A32D830BE15D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AA943128-875E-46F2-9581-A32D830BE15D}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA943128-875E-46F2-9581-A32D830BE15D}.Debug|Win32.Build.0 = Debug|Win32 + {AA943128-875E-46F2-9581-A32D830BE15D}.Release|Win32.ActiveCfg = Release|Win32 + {AA943128-875E-46F2-9581-A32D830BE15D}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Lab2_3/Lab2_3.v12.suo b/Lab2_3/Lab2_3.v12.suo new file mode 100644 index 0000000..60b712c Binary files /dev/null and b/Lab2_3/Lab2_3.v12.suo differ diff --git a/Lab2_3/Lab2_3/Lab2_3.cpp b/Lab2_3/Lab2_3/Lab2_3.cpp new file mode 100644 index 0000000..f64afbd --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.cpp @@ -0,0 +1,45 @@ +// Lab2_3.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +using namespace std; + +/********************************** +Created by: Tyler Kapusniak - +Created on: 1/25/15 - +**********************************/ + +int main() +{ + srand(time(0)); + /*Variables!*/ + int NumbOfDie = NULL; + int SideOfDie = NULL; + int Roll = NULL; + int Mod = NULL; + int Total = 0; + + cout << "WELCOME to *" << endl << "Die -Roller! *" << endl << "*" << endl << "Instructions: *" << endl << "To roll, type the number, of dice, then the number*" << endl << "of sides then any modifieers, all seperated by *" << endl << "spaces *" << endl << "*" << endl << "like this: 3 6 -1 *" << endl << "that would mean: *" << "roll 3 6-sided dice, and subtract 1 from each die *" << endl << "*" << endl << "To exit, enter: 1 1 1 *" << endl << "ENJOY * ****************"; + cout << "Please type the number of die! "; + cin >> NumbOfDie; + cout << "Please type the number of sides on each die! "; + cin >> SideOfDie; + cout << "Add or subtract what number from the Die rolls? (positive for addition, negative for subtraction) "; + cin >> AddOrSubtract; + while (NumbOfDie != 1 || SideOfDie != 1 || Roll != 1) + { + for (int i = 0; i < NumbOfDie; i++) + { + Roll = (rand) % SideOfDie + 1; + Total = Total + Roll; + } + + + } + + return 0; +} + diff --git a/Lab2_3/Lab2_3/Lab2_3.vcxproj b/Lab2_3/Lab2_3/Lab2_3.vcxproj new file mode 100644 index 0000000..3f6fbc1 --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {AA943128-875E-46F2-9581-A32D830BE15D} + Win32Proj + Lab2_3 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + Create + Create + + + + + + \ No newline at end of file diff --git a/Lab2_3/Lab2_3/Lab2_3.vcxproj.filters b/Lab2_3/Lab2_3/Lab2_3.vcxproj.filters new file mode 100644 index 0000000..dd8e130 --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.vcxproj.filters @@ -0,0 +1,36 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/Lab2_3/Lab2_3/ReadMe.txt b/Lab2_3/Lab2_3/ReadMe.txt new file mode 100644 index 0000000..f595e91 --- /dev/null +++ b/Lab2_3/Lab2_3/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : Lab2_3 Project Overview +======================================================================== + +AppWizard has created this Lab2_3 application for you. + +This file contains a summary of what you will find in each of the files that +make up your Lab2_3 application. + + +Lab2_3.vcxproj + This is the main project file for VC++ projects generated using an Application Wizard. + It contains information about the version of Visual C++ that generated the file, and + information about the platforms, configurations, and project features selected with the + Application Wizard. + +Lab2_3.vcxproj.filters + This is the filters file for VC++ projects generated using an Application Wizard. + It contains information about the association between the files in your project + and the filters. This association is used in the IDE to show grouping of files with + similar extensions under a specific node (for e.g. ".cpp" files are associated with the + "Source Files" filter). + +Lab2_3.cpp + This is the main application source file. + +///////////////////////////////////////////////////////////////////////////// +Other standard files: + +StdAfx.h, StdAfx.cpp + These files are used to build a precompiled header (PCH) file + named Lab2_3.pch and a precompiled types file named StdAfx.obj. + +///////////////////////////////////////////////////////////////////////////// +Other notes: + +AppWizard uses "TODO:" comments to indicate parts of the source code you +should add to or customize. + +///////////////////////////////////////////////////////////////////////////// diff --git a/Lab2_3/Lab2_3/stdafx.cpp b/Lab2_3/Lab2_3/stdafx.cpp new file mode 100644 index 0000000..37fdd52 --- /dev/null +++ b/Lab2_3/Lab2_3/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// Lab2_3.pch will be the pre-compiled header +// stdafx.obj will contain the pre-compiled type information + +#include "stdafx.h" + +// TODO: reference any additional headers you need in STDAFX.H +// and not in this file diff --git a/Lab2_3/Lab2_3/stdafx.h b/Lab2_3/Lab2_3/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/Lab2_3/Lab2_3/stdafx.h @@ -0,0 +1,15 @@ +// stdafx.h : include file for standard system include files, +// or project specific include files that are used frequently, but +// are changed infrequently +// + +#pragma once + +#include "targetver.h" + +#include +#include + + + +// TODO: reference additional headers your program requires here diff --git a/Lab2_3/Lab2_3/targetver.h b/Lab2_3/Lab2_3/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/Lab2_3/Lab2_3/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// Including SDKDDKVer.h defines the highest available Windows platform. + +// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and +// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. + +#include diff --git a/Lab2_3/ipch/lab2_3-7d88b4ab/lab2_3-f731b59f.ipch b/Lab2_3/ipch/lab2_3-7d88b4ab/lab2_3-f731b59f.ipch new file mode 100644 index 0000000..3ae9adc Binary files /dev/null and b/Lab2_3/ipch/lab2_3-7d88b4ab/lab2_3-f731b59f.ipch differ