diff --git a/Lab2_2/Debug/Lab2_2.exe b/Lab2_2/Debug/Lab2_2.exe new file mode 100644 index 0000000..57cc6e6 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..0f5e865 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..97cc58e 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..645cc8f 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..678f03a --- /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", "{73387EC0-BBE3-450B-B760-46B8FD19B2CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {73387EC0-BBE3-450B-B760-46B8FD19B2CA}.Debug|Win32.ActiveCfg = Debug|Win32 + {73387EC0-BBE3-450B-B760-46B8FD19B2CA}.Debug|Win32.Build.0 = Debug|Win32 + {73387EC0-BBE3-450B-B760-46B8FD19B2CA}.Release|Win32.ActiveCfg = Release|Win32 + {73387EC0-BBE3-450B-B760-46B8FD19B2CA}.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..6591f30 Binary files /dev/null and b/Lab2_2/Lab2_2.v12.suo differ 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..83acc71 --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 10:52:11 AM. +Project "C:\Users\IEUser\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\cpp_lab_02\lab2_2\lab2_2\lab2_2.cpp(24): 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\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\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.lib" /MACHINE:X86 Debug\Lab2_2.obj + Debug\stdafx.obj + Lab2_2.vcxproj -> C:\Users\IEUser\Cpp_Lab_02\Lab2_2\Debug\Lab2_2.exe +Done Building Project "C:\Users\IEUser\Cpp_Lab_02\Lab2_2\Lab2_2\Lab2_2.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.16 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..e1b1828 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..8987bbc 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..59acd57 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..f923c8b 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..9ec0b63 --- /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\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..2d95dde 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..678c247 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..5c8d1e2 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..437399a 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..583c2ab 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..3cbd4eb 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..7916270 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..3545c53 --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.cpp @@ -0,0 +1,63 @@ +// Lab2_2.cpp : Defines the entry point for the console application. +// + +/* +******************* +* Author: Brad * +* Date: 1/23/15 * +******************* +*/ + +#include "stdafx.h" +#include +#include +#include + +using namespace std; + +int _tmain(){ + + //Initialize and declare variables + int guess = NULL, tries = 0; + + //Get Answer + srand(time(NULL)); + int the_number = rand() % 101 + 1; + + //Welcoming + cout << "Welcome to 'Guess My Number!" << endl; + cout << "I'm thinking of a number between 1 and 100." << endl; + cout << "Try to guess it in as few attempts as possible" << endl; + cout << endl; + + //Priming read + cout << "Take a guess: "; + cin >> guess; + cin.sync(); + + //The 'Loop' + while (guess != the_number){ + + //Priming read/repeat check + if (guess > the_number){ + cout << "Lower..." << endl; + } + else{ + cout << "Higher..." << endl; + } + //Repeat get guess + cout << "Take a guess: "; + cin >> guess; + cin.sync(); + + ++tries; + } + //Winning display + cout << "You guessed it! The number was " << the_number << endl; + cout << "And it only took you, " << tries << " tries!" << endl; + cout << endl; + system("pause"); + + 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..d6a1e76 --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {73387EC0-BBE3-450B-B760-46B8FD19B2CA} + 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-6d32cde6/lab2_2-f71f9d1e.ipch b/Lab2_2/ipch/lab2_2-6d32cde6/lab2_2-f71f9d1e.ipch new file mode 100644 index 0000000..5d06317 Binary files /dev/null and b/Lab2_2/ipch/lab2_2-6d32cde6/lab2_2-f71f9d1e.ipch differ diff --git a/Lab2_3/Debug/Lab2_3.exe b/Lab2_3/Debug/Lab2_3.exe new file mode 100644 index 0000000..1033885 Binary files /dev/null and b/Lab2_3/Debug/Lab2_3.exe differ diff --git a/Lab2_3/Debug/Lab2_3.ilk b/Lab2_3/Debug/Lab2_3.ilk new file mode 100644 index 0000000..facbf0d Binary files /dev/null and b/Lab2_3/Debug/Lab2_3.ilk differ diff --git a/Lab2_3/Debug/Lab2_3.pdb b/Lab2_3/Debug/Lab2_3.pdb new file mode 100644 index 0000000..43a766d Binary files /dev/null and b/Lab2_3/Debug/Lab2_3.pdb differ diff --git a/Lab2_3/Lab2_3.sdf b/Lab2_3/Lab2_3.sdf new file mode 100644 index 0000000..2ef9e4b 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..198feb1 --- /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", "{E1D63C50-726E-45F1-A4E1-05EFB2521589}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E1D63C50-726E-45F1-A4E1-05EFB2521589}.Debug|Win32.ActiveCfg = Debug|Win32 + {E1D63C50-726E-45F1-A4E1-05EFB2521589}.Debug|Win32.Build.0 = Debug|Win32 + {E1D63C50-726E-45F1-A4E1-05EFB2521589}.Release|Win32.ActiveCfg = Release|Win32 + {E1D63C50-726E-45F1-A4E1-05EFB2521589}.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..26ca0a0 Binary files /dev/null and b/Lab2_3/Lab2_3.v12.suo differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.log b/Lab2_3/Lab2_3/Debug/Lab2_3.log new file mode 100644 index 0000000..901b2dd --- /dev/null +++ b/Lab2_3/Lab2_3/Debug/Lab2_3.log @@ -0,0 +1,17 @@ +Build started 1/27/2015 11:36:06 AM. +Project "C:\Users\IEUser\Cpp_Lab_02\Lab2_3\Lab2_3\Lab2_3.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_3.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt Lab2_3.cpp + Lab2_3.cpp +c:\users\ieuser\cpp_lab_02\lab2_3\lab2_3\lab2_3.cpp(41): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data +c:\users\ieuser\cpp_lab_02\lab2_3\lab2_3\lab2_3.cpp(39): warning C4101: 'sides' : unreferenced local variable +c:\users\ieuser\cpp_lab_02\lab2_3\lab2_3\lab2_3.cpp(39): warning C4101: 'quanity' : unreferenced local variable +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Cpp_Lab_02\Lab2_3\Debug\Lab2_3.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\Cpp_Lab_02\Lab2_3\Debug\Lab2_3.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Cpp_Lab_02\Lab2_3\Debug\Lab2_3.lib" /MACHINE:X86 Debug\Lab2_3.obj + Debug\stdafx.obj + Lab2_3.vcxproj -> C:\Users\IEUser\Cpp_Lab_02\Lab2_3\Debug\Lab2_3.exe +Done Building Project "C:\Users\IEUser\Cpp_Lab_02\Lab2_3\Lab2_3\Lab2_3.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.19 diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.obj b/Lab2_3/Lab2_3/Debug/Lab2_3.obj new file mode 100644 index 0000000..0466ec1 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.obj differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.pch b/Lab2_3/Lab2_3/Debug/Lab2_3.pch new file mode 100644 index 0000000..6d100a7 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.pch differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.read.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ae56106 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.read.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.write.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.write.1.tlog new file mode 100644 index 0000000..e3141f3 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/CL.write.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/Lab2_3.lastbuildstate b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/Lab2_3.lastbuildstate new file mode 100644 index 0000000..5b464b9 --- /dev/null +++ b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/Lab2_3.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Cpp_Lab_02\Lab2_3\| diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/cl.command.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/cl.command.1.tlog new file mode 100644 index 0000000..7572202 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/cl.command.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.command.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.command.1.tlog new file mode 100644 index 0000000..cdb4c9e Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.command.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.read.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.read.1.tlog new file mode 100644 index 0000000..f075bf0 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.read.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.write.1.tlog b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.write.1.tlog new file mode 100644 index 0000000..9b6e2d2 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/Lab2_3.tlog/link.write.1.tlog differ diff --git a/Lab2_3/Lab2_3/Debug/stdafx.obj b/Lab2_3/Lab2_3/Debug/stdafx.obj new file mode 100644 index 0000000..c4a00f6 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/stdafx.obj differ diff --git a/Lab2_3/Lab2_3/Debug/vc120.idb b/Lab2_3/Lab2_3/Debug/vc120.idb new file mode 100644 index 0000000..93e89b5 Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/vc120.idb differ diff --git a/Lab2_3/Lab2_3/Debug/vc120.pdb b/Lab2_3/Lab2_3/Debug/vc120.pdb new file mode 100644 index 0000000..64f1ece Binary files /dev/null and b/Lab2_3/Lab2_3/Debug/vc120.pdb 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..8fccdf8 --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.cpp @@ -0,0 +1,63 @@ +// Lab2_3.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include + + +/* +******************* +* Author: Brad * +* Date: 1/23/15 * +******************* +*/ + +using namespace std; + +int _tmain(){ + + //Printing + cout << "* WELCOME to Die -Roller! *" << endl; + cout << "*********************************************************" << endl; + cout << "* Instructions: *" << endl; + cout << "* To roll, type the number of dice, then the number *" << endl; + cout << "* of sides then any modifiers, all separated by *" << endl; + cout << "* spaces. *" << endl; + cout << "*********************************************************" << endl; + cout << "* Like this: 3 6 -1 *" << endl; + cout << "* that would mean: *" << endl; + cout << "* Roll 3 6-sided dice, and subtract 1 from each die *" << endl; + cout << "*********************************************************" << endl; + cout << "* To exit, enter: 1 1 1 *" << endl; + cout << "* ENJOY *" << endl; + cout << "*********************************************************" << endl; + cout << endl; + + bool rolldice = true; + int quanity, sides, sub = 0, roll = 0, total = 0; + + srand(time(0)); + + while (rolldice == true){ + int quanity = 0, sides = 0, sub = 0; + cout << "Your Roll: "; + cin >> quanity >> sides >> sub; + cin.sync(); + + if (quanity == 1 || sides == 1 || sub == 1){ + rolldice = false; + } + for (int i = 0; i < quanity; ++i){ + int roll = (rand() % (sides + 1) + 1) - sub; + total = total + roll; + } + if (rolldice == true){ + cout << "Your roll total: " << total; + } + getchar(); + } + 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..0aa44b6 --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {E1D63C50-726E-45F1-A4E1-05EFB2521589} + 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-b61a0389/lab2_3-f731b59f.ipch b/Lab2_3/ipch/lab2_3-b61a0389/lab2_3-f731b59f.ipch new file mode 100644 index 0000000..f5d1830 Binary files /dev/null and b/Lab2_3/ipch/lab2_3-b61a0389/lab2_3-f731b59f.ipch differ diff --git a/lab2_1/ipch/lab2_1-244b9843/lab2_1-f70d849d.ipch b/lab2_1/ipch/lab2_1-244b9843/lab2_1-f70d849d.ipch new file mode 100644 index 0000000..c17c855 Binary files /dev/null and b/lab2_1/ipch/lab2_1-244b9843/lab2_1-f70d849d.ipch differ diff --git a/lab2_1/lab2_1.sdf b/lab2_1/lab2_1.sdf new file mode 100644 index 0000000..7513b44 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..d43b94a --- /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", "{1380AB6F-76EC-4FD9-BAA7-6832766613BD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1380AB6F-76EC-4FD9-BAA7-6832766613BD}.Debug|Win32.ActiveCfg = Debug|Win32 + {1380AB6F-76EC-4FD9-BAA7-6832766613BD}.Debug|Win32.Build.0 = Debug|Win32 + {1380AB6F-76EC-4FD9-BAA7-6832766613BD}.Release|Win32.ActiveCfg = Release|Win32 + {1380AB6F-76EC-4FD9-BAA7-6832766613BD}.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..dbcae60 Binary files /dev/null and b/lab2_1/lab2_1.v12.suo differ diff --git a/lab2_1/lab2_1/ReadMe.txt b/lab2_1/lab2_1/ReadMe.txt new file mode 100644 index 0000000..60e0926 --- /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/lab2_1.cpp b/lab2_1/lab2_1/lab2_1.cpp new file mode 100644 index 0000000..710f426 --- /dev/null +++ b/lab2_1/lab2_1/lab2_1.cpp @@ -0,0 +1,36 @@ +// Lab2_1.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include + +using namespace std; + +int _tmain(){ + //Initialize and declare + int count = 0; //Counter + int heads = 0, tails = 0; // heads and tails counter + + srand(time(NULL)); + + while (count < 100){ + int flip = rand() % 2; + if (flip == 1){ + ++heads; + cout << "You flipped a heads! " << endl; + } + else{ + ++tails; + cout << "You flipped a tails! " << endl; + } + ++count; + } + cout << endl; + cout << "You flipped " << heads << " heads and " << tails << " tails!"; + + 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..af242f7 --- /dev/null +++ b/lab2_1/lab2_1/lab2_1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {1380AB6F-76EC-4FD9-BAA7-6832766613BD} + 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..86c7ed8 --- /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/stdafx.cpp b/lab2_1/lab2_1/stdafx.cpp new file mode 100644 index 0000000..5a038a2 --- /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