diff --git a/lab2-1/ConsoleApplication7.sdf b/lab2-1/ConsoleApplication7.sdf new file mode 100644 index 0000000..ddfb1bb Binary files /dev/null and b/lab2-1/ConsoleApplication7.sdf differ diff --git a/lab2-1/ConsoleApplication7/ConsoleApplication7.vcxproj b/lab2-1/ConsoleApplication7/ConsoleApplication7.vcxproj new file mode 100644 index 0000000..aed47e2 --- /dev/null +++ b/lab2-1/ConsoleApplication7/ConsoleApplication7.vcxproj @@ -0,0 +1,96 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {91BA317B-BA37-43FE-BA49-7AA3D7037747} + Win32Proj + ConsoleApplication7 + 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/Debug/ConsoleApplication7.exe b/lab2-1/Debug/ConsoleApplication7.exe new file mode 100644 index 0000000..dc46dfc Binary files /dev/null and b/lab2-1/Debug/ConsoleApplication7.exe differ diff --git a/lab2-1/Debug/ConsoleApplication7.ilk b/lab2-1/Debug/ConsoleApplication7.ilk new file mode 100644 index 0000000..ca9501f Binary files /dev/null and b/lab2-1/Debug/ConsoleApplication7.ilk differ diff --git a/lab2-1/Debug/ConsoleApplication7.pdb b/lab2-1/Debug/ConsoleApplication7.pdb new file mode 100644 index 0000000..2b2d5c7 Binary files /dev/null and b/lab2-1/Debug/ConsoleApplication7.pdb differ diff --git a/lab2-1/ipch/consoleapplication7-cf3ac69f/consoleapplication7-3cb2752a.ipch b/lab2-1/ipch/consoleapplication7-cf3ac69f/consoleapplication7-3cb2752a.ipch new file mode 100644 index 0000000..02054f1 Binary files /dev/null and b/lab2-1/ipch/consoleapplication7-cf3ac69f/consoleapplication7-3cb2752a.ipch differ diff --git a/lab2-1/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch b/lab2-1/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch new file mode 100644 index 0000000..7e1a2b6 Binary files /dev/null and b/lab2-1/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch differ diff --git a/lab2-1/lab2-1.sdf b/lab2-1/lab2-1.sdf new file mode 100644 index 0000000..322edd9 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..1b80250 --- /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}") = "ConsoleApplication7", "ConsoleApplication7\ConsoleApplication7.vcxproj", "{91BA317B-BA37-43FE-BA49-7AA3D7037747}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Debug|Win32.ActiveCfg = Debug|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Debug|Win32.Build.0 = Debug|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Release|Win32.ActiveCfg = Release|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/lab2-1/lab2-1.suo b/lab2-1/lab2-1.suo new file mode 100644 index 0000000..f2272b8 Binary files /dev/null and b/lab2-1/lab2-1.suo differ diff --git a/lab2-1/lab2-1.v12.suo b/lab2-1/lab2-1.v12.suo new file mode 100644 index 0000000..3efe792 Binary files /dev/null and b/lab2-1/lab2-1.v12.suo differ diff --git a/lab2-1/lab2-1/ConsoleApplication7.cpp b/lab2-1/lab2-1/ConsoleApplication7.cpp new file mode 100644 index 0000000..2ea3ab7 --- /dev/null +++ b/lab2-1/lab2-1/ConsoleApplication7.cpp @@ -0,0 +1,48 @@ +// ConsoleApplication7.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +#include +using namespace std; + + +#include +#include +using namespace std; + +int flip(); + +int main() +{ + int coin, counter, tails = 0, heads = 0; + for (counter = 1; counter <= 100; counter++) + { + coin = flip(); + + if (coin == 0) + { + tails = tails + 1; + } + else if (coin == 1) + { + + heads = heads + 1; + } + } + + cout << endl; + cout << "Tails was tossed " << tails << " times" << endl; + cout << "Heads was tossed " << heads << " times" << endl; + cin.ignore(); + + +} +int flip() +{ + return rand() % 2; +} + + diff --git a/lab2-1/lab2-1/ConsoleApplication7.sdf b/lab2-1/lab2-1/ConsoleApplication7.sdf new file mode 100644 index 0000000..8b07b4d Binary files /dev/null and b/lab2-1/lab2-1/ConsoleApplication7.sdf differ diff --git a/lab2-1/lab2-1/ConsoleApplication7.sln b/lab2-1/lab2-1/ConsoleApplication7.sln new file mode 100644 index 0000000..f3fece1 --- /dev/null +++ b/lab2-1/lab2-1/ConsoleApplication7.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}") = "ConsoleApplication7", "ConsoleApplication7.vcxproj", "{91BA317B-BA37-43FE-BA49-7AA3D7037747}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Debug|Win32.ActiveCfg = Debug|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Debug|Win32.Build.0 = Debug|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Release|Win32.ActiveCfg = Release|Win32 + {91BA317B-BA37-43FE-BA49-7AA3D7037747}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/lab2-1/lab2-1/ConsoleApplication7.v12.suo b/lab2-1/lab2-1/ConsoleApplication7.v12.suo new file mode 100644 index 0000000..88d8155 Binary files /dev/null and b/lab2-1/lab2-1/ConsoleApplication7.v12.suo differ diff --git a/lab2-1/lab2-1/ConsoleApplication7.vcxproj b/lab2-1/lab2-1/ConsoleApplication7.vcxproj new file mode 100644 index 0000000..abc1e3a --- /dev/null +++ b/lab2-1/lab2-1/ConsoleApplication7.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {91BA317B-BA37-43FE-BA49-7AA3D7037747} + Win32Proj + ConsoleApplication7 + + + + 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/ConsoleApplication7.vcxproj.filters b/lab2-1/lab2-1/ConsoleApplication7.vcxproj.filters new file mode 100644 index 0000000..387287b --- /dev/null +++ b/lab2-1/lab2-1/ConsoleApplication7.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/Debug/ConsoleA.91BA317B.tlog/CL.read.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/CL.read.1.tlog new file mode 100644 index 0000000..96fa57b Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/CL.read.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/CL.write.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/CL.write.1.tlog new file mode 100644 index 0000000..2cf0616 Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/CL.write.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/ConsoleApplication7.lastbuildstate b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/ConsoleApplication7.lastbuildstate new file mode 100644 index 0000000..21ab4b3 --- /dev/null +++ b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/ConsoleApplication7.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\| diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/cl.command.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/cl.command.1.tlog new file mode 100644 index 0000000..6cff176 Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/cl.command.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.command.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.command.1.tlog new file mode 100644 index 0000000..2f125a5 Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.command.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.read.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.read.1.tlog new file mode 100644 index 0000000..d12914e Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.read.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.write.1.tlog b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.write.1.tlog new file mode 100644 index 0000000..5c1de0b Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleA.91BA317B.tlog/link.write.1.tlog differ diff --git a/lab2-1/lab2-1/Debug/ConsoleApplication7.log b/lab2-1/lab2-1/Debug/ConsoleApplication7.log new file mode 100644 index 0000000..c319075 --- /dev/null +++ b/lab2-1/lab2-1/Debug/ConsoleApplication7.log @@ -0,0 +1,14 @@ +Build started 1/23/2015 1:23:51 AM. +Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\ConsoleApplication7\ConsoleApplication7.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\ConsoleApplication7.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ConsoleApplication7.cpp + ConsoleApplication7.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\Debug\ConsoleApplication7.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\lab2-1\Debug\ConsoleApplication7.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\Debug\ConsoleApplication7.lib" /MACHINE:X86 Debug\ConsoleApplication7.obj + Debug\stdafx.obj + ConsoleApplication7.vcxproj -> C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\Debug\ConsoleApplication7.exe +Done Building Project "C:\Users\IEUser\Documents\Visual Studio 2013\Projects\lab2-1\ConsoleApplication7\ConsoleApplication7.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:01.44 diff --git a/lab2-1/lab2-1/Debug/ConsoleApplication7.obj b/lab2-1/lab2-1/Debug/ConsoleApplication7.obj new file mode 100644 index 0000000..6179993 Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleApplication7.obj differ diff --git a/lab2-1/lab2-1/Debug/ConsoleApplication7.pch b/lab2-1/lab2-1/Debug/ConsoleApplication7.pch new file mode 100644 index 0000000..5c5da4d Binary files /dev/null and b/lab2-1/lab2-1/Debug/ConsoleApplication7.pch 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..344510f 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..dae47b1 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..26069a6 Binary files /dev/null and b/lab2-1/lab2-1/Debug/vc120.pdb differ diff --git a/lab2-1/lab2-1/ReadMe.txt b/lab2-1/lab2-1/ReadMe.txt new file mode 100644 index 0000000..427654a --- /dev/null +++ b/lab2-1/lab2-1/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ConsoleApplication7 Project Overview +======================================================================== + +AppWizard has created this ConsoleApplication7 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ConsoleApplication7 application. + + +ConsoleApplication7.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. + +ConsoleApplication7.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). + +ConsoleApplication7.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 ConsoleApplication7.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..e8f7e29 --- /dev/null +++ b/lab2-1/lab2-1/lab2-1.cpp @@ -0,0 +1,47 @@ +// ConsoleApplication7.cpp : Defines the entry point for the console application. +// + +#include "stdafx.h" +#include +#include +#include +#include +#include +#include +using namespace std; + +int flip(); + +int main() +{ + int coin, counter, tails = 0, heads = 0; + for (counter = 1; counter <= 100; counter++) + { + coin = flip(); + + if (coin == 0) + { + cout << "T "; + tails = tails + 1; + } + else if (coin == 1) + { + cout << "H "; + heads = heads + 1; + } + } + + cout << endl; + cout << "Tails was tossed " << tails << " times" << endl; + cout << "Heads was tossed " << heads << " times" << endl; + cin.ignore(); + cin.ignore(); + + +} +int flip() +{ + return rand() % 2; +} + + diff --git a/lab2-1/lab2-1/stdafx.cpp b/lab2-1/lab2-1/stdafx.cpp new file mode 100644 index 0000000..a1f0f2c --- /dev/null +++ b/lab2-1/lab2-1/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ConsoleApplication7.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-2/ConsoleApplication8.sdf b/lab2-2/ConsoleApplication8.sdf new file mode 100644 index 0000000..fcb2cf1 Binary files /dev/null and b/lab2-2/ConsoleApplication8.sdf differ diff --git a/lab2-2/ConsoleApplication8.sln b/lab2-2/ConsoleApplication8.sln new file mode 100644 index 0000000..4810d3f --- /dev/null +++ b/lab2-2/ConsoleApplication8.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}") = "ConsoleApplication8", "ConsoleApplication8\ConsoleApplication8.vcxproj", "{7B9EF85E-1313-40AA-8545-BBB255820C27}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7B9EF85E-1313-40AA-8545-BBB255820C27}.Debug|Win32.ActiveCfg = Debug|Win32 + {7B9EF85E-1313-40AA-8545-BBB255820C27}.Debug|Win32.Build.0 = Debug|Win32 + {7B9EF85E-1313-40AA-8545-BBB255820C27}.Release|Win32.ActiveCfg = Release|Win32 + {7B9EF85E-1313-40AA-8545-BBB255820C27}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/lab2-2/ConsoleApplication8.v12.suo b/lab2-2/ConsoleApplication8.v12.suo new file mode 100644 index 0000000..c47401c Binary files /dev/null and b/lab2-2/ConsoleApplication8.v12.suo differ diff --git a/lab2-2/ConsoleApplication8/ConsoleApplication8.cpp b/lab2-2/ConsoleApplication8/ConsoleApplication8.cpp new file mode 100644 index 0000000..658c2b5 --- /dev/null +++ b/lab2-2/ConsoleApplication8/ConsoleApplication8.cpp @@ -0,0 +1,42 @@ +#include "stdafx.h" +#include +#include +#include + +using namespace std; + +int _tmain(int argc, _TCHAR* argv[]) +{ + srand(static_cast(time(0))); //seed the random number generator + + int secretNumber = rand() % 100 + 1; // create random number between 1 and 100 + int tries = 0; + int guess; + + cout << "\tWelcome to Guess My Number\n\n"; + + do + { + cout << "Enter a guess: "; + cin >> guess; + ++tries; + + if (guess > secretNumber) + { + cout << "Too high!\n\n"; + } + else if (guess < secretNumber) + { + cout << "Too low!\n\n"; + } + else + { + cout << "\nThat's it! You got it in " << tries << " guesses!\n"; + } + + } while (guess != secretNumber); + + return 0; +} + + diff --git a/lab2-2/ConsoleApplication8/ConsoleApplication8.vcxproj b/lab2-2/ConsoleApplication8/ConsoleApplication8.vcxproj new file mode 100644 index 0000000..50e84a1 --- /dev/null +++ b/lab2-2/ConsoleApplication8/ConsoleApplication8.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {7B9EF85E-1313-40AA-8545-BBB255820C27} + Win32Proj + ConsoleApplication8 + + + + 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/ConsoleApplication8/ConsoleApplication8.vcxproj.filters b/lab2-2/ConsoleApplication8/ConsoleApplication8.vcxproj.filters new file mode 100644 index 0000000..0af6b5a --- /dev/null +++ b/lab2-2/ConsoleApplication8/ConsoleApplication8.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/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.read.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.read.1.tlog new file mode 100644 index 0000000..08c6492 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.read.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.write.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ff5ff15 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/CL.write.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/ConsoleApplication8.lastbuildstate b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/ConsoleApplication8.lastbuildstate new file mode 100644 index 0000000..f41c7a6 --- /dev/null +++ b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/ConsoleApplication8.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication8\| diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/cl.command.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5da50d7 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/cl.command.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.command.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.command.1.tlog new file mode 100644 index 0000000..6ca4b7d Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.command.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.read.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.read.1.tlog new file mode 100644 index 0000000..940a3cd Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.read.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.write.1.tlog b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.write.1.tlog new file mode 100644 index 0000000..c4aec56 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleA.7B9EF85E.tlog/link.write.1.tlog differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.log b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.log new file mode 100644 index 0000000..e51372e --- /dev/null +++ b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.log @@ -0,0 +1,16 @@ +Build started 1/23/2015 1:52:39 AM. +Project "c:\Users\IEUser\documents\visual studio 2013\Projects\ConsoleApplication8\ConsoleApplication8\ConsoleApplication8.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 /Yc"stdafx.h" /Fp"Debug\ConsoleApplication8.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt stdafx.cpp + stdafx.cpp + 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\ConsoleApplication8.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ConsoleApplication8.cpp + ConsoleApplication8.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication8\Debug\ConsoleApplication8.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\ConsoleApplication8\Debug\ConsoleApplication8.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication8\Debug\ConsoleApplication8.lib" /MACHINE:X86 Debug\ConsoleApplication8.obj + Debug\stdafx.obj + ConsoleApplication8.vcxproj -> c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication8\Debug\ConsoleApplication8.exe +Done Building Project "c:\Users\IEUser\documents\visual studio 2013\Projects\ConsoleApplication8\ConsoleApplication8\ConsoleApplication8.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:02.39 diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.obj b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.obj new file mode 100644 index 0000000..87dad9f Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.obj differ diff --git a/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.pch b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.pch new file mode 100644 index 0000000..8560929 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/ConsoleApplication8.pch differ diff --git a/lab2-2/ConsoleApplication8/Debug/stdafx.obj b/lab2-2/ConsoleApplication8/Debug/stdafx.obj new file mode 100644 index 0000000..900364d Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/stdafx.obj differ diff --git a/lab2-2/ConsoleApplication8/Debug/vc120.idb b/lab2-2/ConsoleApplication8/Debug/vc120.idb new file mode 100644 index 0000000..8aaba7c Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/vc120.idb differ diff --git a/lab2-2/ConsoleApplication8/Debug/vc120.pdb b/lab2-2/ConsoleApplication8/Debug/vc120.pdb new file mode 100644 index 0000000..6f73b07 Binary files /dev/null and b/lab2-2/ConsoleApplication8/Debug/vc120.pdb differ diff --git a/lab2-2/ConsoleApplication8/ReadMe.txt b/lab2-2/ConsoleApplication8/ReadMe.txt new file mode 100644 index 0000000..63bcc7a --- /dev/null +++ b/lab2-2/ConsoleApplication8/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ConsoleApplication8 Project Overview +======================================================================== + +AppWizard has created this ConsoleApplication8 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ConsoleApplication8 application. + + +ConsoleApplication8.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. + +ConsoleApplication8.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). + +ConsoleApplication8.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 ConsoleApplication8.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/ConsoleApplication8/stdafx.cpp b/lab2-2/ConsoleApplication8/stdafx.cpp new file mode 100644 index 0000000..09f7116 --- /dev/null +++ b/lab2-2/ConsoleApplication8/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ConsoleApplication8.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/ConsoleApplication8/stdafx.h b/lab2-2/ConsoleApplication8/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/lab2-2/ConsoleApplication8/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/ConsoleApplication8/targetver.h b/lab2-2/ConsoleApplication8/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/lab2-2/ConsoleApplication8/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/Debug/ConsoleApplication8.exe b/lab2-2/Debug/ConsoleApplication8.exe new file mode 100644 index 0000000..64b38e6 Binary files /dev/null and b/lab2-2/Debug/ConsoleApplication8.exe differ diff --git a/lab2-2/Debug/ConsoleApplication8.ilk b/lab2-2/Debug/ConsoleApplication8.ilk new file mode 100644 index 0000000..2f210cd Binary files /dev/null and b/lab2-2/Debug/ConsoleApplication8.ilk differ diff --git a/lab2-2/Debug/ConsoleApplication8.pdb b/lab2-2/Debug/ConsoleApplication8.pdb new file mode 100644 index 0000000..d965bb3 Binary files /dev/null and b/lab2-2/Debug/ConsoleApplication8.pdb differ diff --git a/lab2-2/ipch/consoleapplication8-2bd3bc01/consoleapplication8-3cc48dab.ipch b/lab2-2/ipch/consoleapplication8-2bd3bc01/consoleapplication8-3cc48dab.ipch new file mode 100644 index 0000000..7959599 Binary files /dev/null and b/lab2-2/ipch/consoleapplication8-2bd3bc01/consoleapplication8-3cc48dab.ipch differ diff --git a/lab2-3/ConsoleApplication7.sdf b/lab2-3/ConsoleApplication7.sdf new file mode 100644 index 0000000..65e0657 Binary files /dev/null and b/lab2-3/ConsoleApplication7.sdf differ diff --git a/lab2-3/ConsoleApplication7.sln b/lab2-3/ConsoleApplication7.sln new file mode 100644 index 0000000..8aeb926 --- /dev/null +++ b/lab2-3/ConsoleApplication7.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}") = "ConsoleApplication7", "ConsoleApplication7\ConsoleApplication7.vcxproj", "{58EC3AE7-669F-4AA4-944B-326E70BF0A64}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {58EC3AE7-669F-4AA4-944B-326E70BF0A64}.Debug|Win32.ActiveCfg = Debug|Win32 + {58EC3AE7-669F-4AA4-944B-326E70BF0A64}.Debug|Win32.Build.0 = Debug|Win32 + {58EC3AE7-669F-4AA4-944B-326E70BF0A64}.Release|Win32.ActiveCfg = Release|Win32 + {58EC3AE7-669F-4AA4-944B-326E70BF0A64}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/lab2-3/ConsoleApplication7.v12.suo b/lab2-3/ConsoleApplication7.v12.suo new file mode 100644 index 0000000..86b7dc4 Binary files /dev/null and b/lab2-3/ConsoleApplication7.v12.suo differ diff --git a/lab2-3/ConsoleApplication7/ConsoleApplication7.cpp b/lab2-3/ConsoleApplication7/ConsoleApplication7.cpp new file mode 100644 index 0000000..2eb8643 --- /dev/null +++ b/lab2-3/ConsoleApplication7/ConsoleApplication7.cpp @@ -0,0 +1,42 @@ +// ConsoleApplication7.cpp : Defines the entry point for the console application. +// +#include "stdafx.h" +#include +#include +#include + +using namespace std; + +int _tmain(int argc, _TCHAR* argv[]) +{ + srand(static_cast(time(0))); //seed the random number generator + + int secretNumber = rand() % 100 + 1; // create random number between 1 and 100 + int tries = 0; + int guess; + + cout << "\tWelcome to Guess My Number\n\n"; + + do + { + cout << "Enter a guess: "; + cin >> guess; + ++tries; + + if (guess > secretNumber) + { + cout << "Too high!\n\n"; + } + else if (guess < secretNumber) + { + cout << "Too low!\n\n"; + } + else + { + cout << "\nThat's it! You got it in " << tries << " guesses!\n"; + } + + } while (guess != secretNumber); + + return 0; +} diff --git a/lab2-3/ConsoleApplication7/ConsoleApplication7.vcxproj b/lab2-3/ConsoleApplication7/ConsoleApplication7.vcxproj new file mode 100644 index 0000000..76baced --- /dev/null +++ b/lab2-3/ConsoleApplication7/ConsoleApplication7.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {58EC3AE7-669F-4AA4-944B-326E70BF0A64} + Win32Proj + ConsoleApplication7 + + + + 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/ConsoleApplication7/ConsoleApplication7.vcxproj.filters b/lab2-3/ConsoleApplication7/ConsoleApplication7.vcxproj.filters new file mode 100644 index 0000000..387287b --- /dev/null +++ b/lab2-3/ConsoleApplication7/ConsoleApplication7.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/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.read.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ebff618 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.read.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.write.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.write.1.tlog new file mode 100644 index 0000000..dcc1d07 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/CL.write.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/ConsoleApplication7.lastbuildstate b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/ConsoleApplication7.lastbuildstate new file mode 100644 index 0000000..dfe2d60 --- /dev/null +++ b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/ConsoleApplication7.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication7\| diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/cl.command.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/cl.command.1.tlog new file mode 100644 index 0000000..f202ca6 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/cl.command.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.command.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.command.1.tlog new file mode 100644 index 0000000..9b44dfd Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.command.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.read.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.read.1.tlog new file mode 100644 index 0000000..0604ca7 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.read.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.write.1.tlog b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.write.1.tlog new file mode 100644 index 0000000..2fb6fbd Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleA.58EC3AE7.tlog/link.write.1.tlog differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.log b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.log new file mode 100644 index 0000000..6f4aed8 --- /dev/null +++ b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.log @@ -0,0 +1,16 @@ +Build started 1/23/2015 1:41:33 AM. +Project "c:\Users\IEUser\documents\visual studio 2013\Projects\ConsoleApplication7\ConsoleApplication7\ConsoleApplication7.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 /Yc"stdafx.h" /Fp"Debug\ConsoleApplication7.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt stdafx.cpp + stdafx.cpp + 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\ConsoleApplication7.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ConsoleApplication7.cpp + ConsoleApplication7.cpp +Link: + C:\Program Files\Microsoft Visual Studio 12.0\VC\bin\link.exe /ERRORREPORT:PROMPT /OUT:"c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication7\Debug\ConsoleApplication7.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\ConsoleApplication7\Debug\ConsoleApplication7.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication7\Debug\ConsoleApplication7.lib" /MACHINE:X86 Debug\ConsoleApplication7.obj + Debug\stdafx.obj + ConsoleApplication7.vcxproj -> c:\users\ieuser\documents\visual studio 2013\Projects\ConsoleApplication7\Debug\ConsoleApplication7.exe +Done Building Project "c:\Users\IEUser\documents\visual studio 2013\Projects\ConsoleApplication7\ConsoleApplication7\ConsoleApplication7.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:02.83 diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.obj b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.obj new file mode 100644 index 0000000..1b8029d Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.obj differ diff --git a/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.pch b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.pch new file mode 100644 index 0000000..1e92454 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/ConsoleApplication7.pch differ diff --git a/lab2-3/ConsoleApplication7/Debug/stdafx.obj b/lab2-3/ConsoleApplication7/Debug/stdafx.obj new file mode 100644 index 0000000..6e9b258 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/stdafx.obj differ diff --git a/lab2-3/ConsoleApplication7/Debug/vc120.idb b/lab2-3/ConsoleApplication7/Debug/vc120.idb new file mode 100644 index 0000000..88a548c Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/vc120.idb differ diff --git a/lab2-3/ConsoleApplication7/Debug/vc120.pdb b/lab2-3/ConsoleApplication7/Debug/vc120.pdb new file mode 100644 index 0000000..cc8de06 Binary files /dev/null and b/lab2-3/ConsoleApplication7/Debug/vc120.pdb differ diff --git a/lab2-3/ConsoleApplication7/ReadMe.txt b/lab2-3/ConsoleApplication7/ReadMe.txt new file mode 100644 index 0000000..427654a --- /dev/null +++ b/lab2-3/ConsoleApplication7/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ConsoleApplication7 Project Overview +======================================================================== + +AppWizard has created this ConsoleApplication7 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ConsoleApplication7 application. + + +ConsoleApplication7.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. + +ConsoleApplication7.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). + +ConsoleApplication7.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 ConsoleApplication7.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/ConsoleApplication7/stdafx.cpp b/lab2-3/ConsoleApplication7/stdafx.cpp new file mode 100644 index 0000000..a1f0f2c --- /dev/null +++ b/lab2-3/ConsoleApplication7/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ConsoleApplication7.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/ConsoleApplication7/stdafx.h b/lab2-3/ConsoleApplication7/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/lab2-3/ConsoleApplication7/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/ConsoleApplication7/targetver.h b/lab2-3/ConsoleApplication7/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/lab2-3/ConsoleApplication7/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/Debug/ConsoleApplication7.exe b/lab2-3/Debug/ConsoleApplication7.exe new file mode 100644 index 0000000..3adc488 Binary files /dev/null and b/lab2-3/Debug/ConsoleApplication7.exe differ diff --git a/lab2-3/Debug/ConsoleApplication7.ilk b/lab2-3/Debug/ConsoleApplication7.ilk new file mode 100644 index 0000000..3a03f78 Binary files /dev/null and b/lab2-3/Debug/ConsoleApplication7.ilk differ diff --git a/lab2-3/Debug/ConsoleApplication7.pdb b/lab2-3/Debug/ConsoleApplication7.pdb new file mode 100644 index 0000000..ab11500 Binary files /dev/null and b/lab2-3/Debug/ConsoleApplication7.pdb differ diff --git a/lab2-3/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch b/lab2-3/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch new file mode 100644 index 0000000..acab34c Binary files /dev/null and b/lab2-3/ipch/consoleapplication7-de21b97e/consoleapplication7-3cb2752a.ipch differ