diff --git a/Lab2_1/Debug/Lab2_1.exe b/Lab2_1/Debug/Lab2_1.exe new file mode 100644 index 0000000..11d0317 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..6dea862 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..e8f49cf 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..acce313 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..576e5bb --- /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", "{3CA90601-234F-45E4-BDDC-4D63FD715D66}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3CA90601-234F-45E4-BDDC-4D63FD715D66}.Debug|Win32.ActiveCfg = Debug|Win32 + {3CA90601-234F-45E4-BDDC-4D63FD715D66}.Debug|Win32.Build.0 = Debug|Win32 + {3CA90601-234F-45E4-BDDC-4D63FD715D66}.Release|Win32.ActiveCfg = Release|Win32 + {3CA90601-234F-45E4-BDDC-4D63FD715D66}.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..c39ddeb 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..fa7c065 --- /dev/null +++ b/Lab2_1/Lab2_1/Debug/Lab2_1.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 4:47:12 AM. +Project "C:\Users\IEUser\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\cpp_lab_02\lab2_1\lab2_1\lab2_1.cpp(22): 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_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\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.lib" /MACHINE:X86 Debug\Lab2_1.obj + Debug\stdafx.obj + Lab2_1.vcxproj -> C:\Users\IEUser\Cpp_Lab_02\Lab2_1\Debug\Lab2_1.exe +Done Building Project "C:\Users\IEUser\Cpp_Lab_02\Lab2_1\Lab2_1\Lab2_1.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.21 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..5e41bce 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..be43e8b 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..b930838 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..3fbac1b 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..5901c82 --- /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\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..3bfbcab 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..e239813 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..a6b030a 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..73841ba 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..3000b83 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..7b407a4 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..1844125 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..7d7893f --- /dev/null +++ b/Lab2_1/Lab2_1/Lab2_1.cpp @@ -0,0 +1,43 @@ +//Program: Lab01_4.cpp +//Author: Luke Gosnell +//Date: 1/23/2015 +//This program flips 100 coins, then tells the user how many heads and tails it flipped. + + +#include "stdafx.h" +#include +#include +#include +#include +using namespace std; + +int main() + +{ + string heads = "Heads"; + string tails = "Tails"; + int number = 0; + int headsNum = 0; + int tailsNum = 0; + srand(time(0)); + cout << "Press enter to flip the coin!"; + getchar(); + + while (headsNum + tailsNum < 100) { + number = rand() % 2 + 1; + if (number == 1){ + cout << heads; + headsNum++; + cout << headsNum << endl; + } + else if (number == 2){ + cout << tails; + tailsNum++; + cout << tailsNum << endl; + } + } + cout << "Flipped " << headsNum << " heads and " << tailsNum << " 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..e7248e4 --- /dev/null +++ b/Lab2_1/Lab2_1/Lab2_1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {3CA90601-234F-45E4-BDDC-4D63FD715D66} + 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-244b9843/lab2_1-f70d849d.ipch b/Lab2_1/ipch/lab2_1-244b9843/lab2_1-f70d849d.ipch new file mode 100644 index 0000000..5753731 Binary files /dev/null and b/Lab2_1/ipch/lab2_1-244b9843/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..6e53293 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..86a4d0d 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..9475892 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..631002e 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..db0fb2e --- /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", "{299A5C8A-14BA-48A0-BB74-A586E70CABE5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {299A5C8A-14BA-48A0-BB74-A586E70CABE5}.Debug|Win32.ActiveCfg = Debug|Win32 + {299A5C8A-14BA-48A0-BB74-A586E70CABE5}.Debug|Win32.Build.0 = Debug|Win32 + {299A5C8A-14BA-48A0-BB74-A586E70CABE5}.Release|Win32.ActiveCfg = Release|Win32 + {299A5C8A-14BA-48A0-BB74-A586E70CABE5}.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..9c76c9c 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..f2905ed --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.Build.CppClean.log @@ -0,0 +1,14 @@ +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.pch +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\vc120.pdb +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\vc120.idb +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\stdafx.obj +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.obj +c:\users\ieuser\cpp_lab_02\lab2_2\debug\lab2_2.ilk +c:\users\ieuser\cpp_lab_02\lab2_2\debug\lab2_2.exe +c:\users\ieuser\cpp_lab_02\lab2_2\debug\lab2_2.pdb +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.command.1.tlog +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.read.1.tlog +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\cl.write.1.tlog +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\link.command.1.tlog +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\link.read.1.tlog +c:\users\ieuser\cpp_lab_02\lab2_2\lab2_2\debug\lab2_2.tlog\link.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..36055b2 --- /dev/null +++ b/Lab2_2/Lab2_2/Debug/Lab2_2.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 6:19:28 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(25): 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:00.76 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..4913ec0 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..d8a4716 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..3d6920e 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..1af4608 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..5230a71 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..54ff84d 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..517b010 --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.cpp @@ -0,0 +1,53 @@ +//Program: Lab2_2.cpp +//Author: Luke Gosnell +//Date: 1/23/2015 +//This program picks a number between 1 and 100 and tells the user to guess the number. It will tell the user if the number is higher or lower than their guess. + + +#include "stdafx.h" +#include +#include +#include +#include +using namespace std; + +int main() + +{ + 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; + + int number = 0; + int tries = 0; + int guess = 0; + srand(time(0)); + number = rand() % 100 + 1; + cout << "Guess: "; + cin >> guess; + + while (guess != number){ + tries++; + + if (guess < number){ + cout << "Higher!" << endl; + cout << "Guess: "; + cin >> guess; + } + else { + cout << "Lower!" << endl; + cout << "Guess: "; + cin >> guess; + } + } + + cout << "Congrats! You got it!" << endl; + cout << "The number was " << number << "!" << " And it only took you " << tries << " tries!" << endl; + cout << "Press enter to exit."; + 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..76870fe --- /dev/null +++ b/Lab2_2/Lab2_2/Lab2_2.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {299A5C8A-14BA-48A0-BB74-A586E70CABE5} + 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..af74722 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..7f5e8bd 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..bca80ff 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..79cb943 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..437a5a1 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..a160daf --- /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", "{CDD5C2FD-9319-45B3-9D6D-056128276715}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CDD5C2FD-9319-45B3-9D6D-056128276715}.Debug|Win32.ActiveCfg = Debug|Win32 + {CDD5C2FD-9319-45B3-9D6D-056128276715}.Debug|Win32.Build.0 = Debug|Win32 + {CDD5C2FD-9319-45B3-9D6D-056128276715}.Release|Win32.ActiveCfg = Release|Win32 + {CDD5C2FD-9319-45B3-9D6D-056128276715}.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..a210148 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..84a2403 --- /dev/null +++ b/Lab2_3/Lab2_3/Debug/Lab2_3.log @@ -0,0 +1,16 @@ +Build started 1/27/2015 5:55:32 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(34): 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(46): warning C4390: ';' : empty controlled statement found; is this the intent? +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:00.55 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..daa853c 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..4ac3a83 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..9e40c83 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..9da56dc 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..fe43b21 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..3f946e4 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..ac0217f --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.cpp @@ -0,0 +1,58 @@ +//Program: Lab2_3.cpp +//Author: Luke Gosnell +//Date: 1/23/2015 +//This program allows the user to enter the number of dice, sides, and a modifier. the program tells the user the total of what they rolled. +#include "stdafx.h" +#include +#include +#include +#include +using namespace std; + +int main() + +{ + cout << "WELCOME to " << endl; + cout << "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; + //_____________________________________________________________________________________ + + srand(time(0)); + int dieNum = 0; + int dieSide = 0; + int dieMod = 0; + int sideRoll = 0; + int roll = 0; + int TotalRoll = 0; + + while (TotalRoll != 3){ + cout << "Your Roll: "; + cin >> dieNum >> dieSide >> dieMod; + TotalRoll = dieNum + dieSide + dieMod; + if (TotalRoll > 3); { + for (int count = 0; count < dieNum; count++){ + sideRoll = rand() % dieSide + 1; + + roll = roll+ (sideRoll + dieMod);} + cout << "You rolled " << dieNum << " " << dieSide << "-sided dice. " << dieMod << " was modified for each roll." << endl; + cout << "Total roll: " << TotalRoll << endl; + } + } + + + 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..2e8c1f0 --- /dev/null +++ b/Lab2_3/Lab2_3/Lab2_3.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CDD5C2FD-9319-45B3-9D6D-056128276715} + 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..7634529 Binary files /dev/null and b/Lab2_3/ipch/lab2_3-b61a0389/lab2_3-f731b59f.ipch differ