diff --git a/ConsoleApplication1/ConsoleApplication1.sdf b/ConsoleApplication1/ConsoleApplication1.sdf new file mode 100644 index 0000000..499bb92 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1.sdf differ diff --git a/ConsoleApplication1/ConsoleApplication1.sln b/ConsoleApplication1/ConsoleApplication1.sln new file mode 100644 index 0000000..879d01d --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1.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}") = "ConsoleApplication1", "ConsoleApplication1\ConsoleApplication1.vcxproj", "{5AF01E6B-B258-414F-B8D6-062AA4747930}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5AF01E6B-B258-414F-B8D6-062AA4747930}.Debug|Win32.ActiveCfg = Debug|Win32 + {5AF01E6B-B258-414F-B8D6-062AA4747930}.Debug|Win32.Build.0 = Debug|Win32 + {5AF01E6B-B258-414F-B8D6-062AA4747930}.Release|Win32.ActiveCfg = Release|Win32 + {5AF01E6B-B258-414F-B8D6-062AA4747930}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ConsoleApplication1/ConsoleApplication1.v12.suo b/ConsoleApplication1/ConsoleApplication1.v12.suo new file mode 100644 index 0000000..ba38b32 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1.v12.suo differ diff --git a/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp new file mode 100644 index 0000000..e717bcf --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.cpp @@ -0,0 +1,25 @@ +// ConsoleApplication1.cpp : Defines the entry point for the console application. +// + +#include +#include +#include +#include +using namespace std; + +int heads = 0, tails = 0, cointoss; +int flip(); +int main() +{ + for (int counter = 1; counter <= 10; counter++) + { + for (int count = 1; count <= 10; count++) + flip(); + cout << endl; + } + + cout << endl; + cout << "Heads = " << heads << endl; + cout << "Tails = " << tails << endl; + + return 0; diff --git a/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj new file mode 100644 index 0000000..654253e --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {5AF01E6B-B258-414F-B8D6-062AA4747930} + Win32Proj + ConsoleApplication1 + + + + 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/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.vcxproj.filters new file mode 100644 index 0000000..33745b0 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/ConsoleApplication1.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/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.read.1.tlog b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2b130fb Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.read.1.tlog differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.write.1.tlog b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.write.1.tlog new file mode 100644 index 0000000..9b5cd4a Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/CL.write.1.tlog differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/ConsoleApplication1.lastbuildstate b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/ConsoleApplication1.lastbuildstate new file mode 100644 index 0000000..1d70f59 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/ConsoleApplication1.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\| diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/cl.command.1.tlog b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5957a3f Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/cl.command.1.tlog differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/unsuccessfulbuild b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleA.5AF01E6B.tlog/unsuccessfulbuild new file mode 100644 index 0000000..e69de29 diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.log b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.log new file mode 100644 index 0000000..36fb5b4 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.log @@ -0,0 +1,19 @@ +Build started 1/23/2015 9:42:53 AM. +Project "C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.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\ConsoleApplication1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ConsoleApplication1.cpp + ConsoleApplication1.cpp +c:\users\ieuser\cpp_lab_02\consoleapplication1\consoleapplication1\consoleapplication1.cpp(4): warning C4627: '#include ': skipped when looking for precompiled header use + Add directive to 'stdafx.h' or rebuild precompiled header +c:\users\ieuser\cpp_lab_02\consoleapplication1\consoleapplication1\consoleapplication1.cpp(5): warning C4627: '#include ': skipped when looking for precompiled header use + Add directive to 'stdafx.h' or rebuild precompiled header +c:\users\ieuser\cpp_lab_02\consoleapplication1\consoleapplication1\consoleapplication1.cpp(6): warning C4627: '#include ': skipped when looking for precompiled header use + Add directive to 'stdafx.h' or rebuild precompiled header +c:\users\ieuser\cpp_lab_02\consoleapplication1\consoleapplication1\consoleapplication1.cpp(7): warning C4627: '#include ': skipped when looking for precompiled header use + Add directive to 'stdafx.h' or rebuild precompiled header +c:\users\ieuser\cpp_lab_02\consoleapplication1\consoleapplication1\consoleapplication1.cpp(26): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? +Done Building Project "C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.vcxproj" (Build target(s)) -- FAILED. + +Build FAILED. + +Time Elapsed 00:00:01.03 diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.pch b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.pch new file mode 100644 index 0000000..62768e7 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/ConsoleApplication1.pch differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/stdafx.obj b/ConsoleApplication1/ConsoleApplication1/Debug/stdafx.obj new file mode 100644 index 0000000..eb9f215 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/stdafx.obj differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/vc120.idb b/ConsoleApplication1/ConsoleApplication1/Debug/vc120.idb new file mode 100644 index 0000000..31af50f Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/vc120.idb differ diff --git a/ConsoleApplication1/ConsoleApplication1/Debug/vc120.pdb b/ConsoleApplication1/ConsoleApplication1/Debug/vc120.pdb new file mode 100644 index 0000000..235c298 Binary files /dev/null and b/ConsoleApplication1/ConsoleApplication1/Debug/vc120.pdb differ diff --git a/ConsoleApplication1/ConsoleApplication1/ReadMe.txt b/ConsoleApplication1/ConsoleApplication1/ReadMe.txt new file mode 100644 index 0000000..4cb8a2f --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : ConsoleApplication1 Project Overview +======================================================================== + +AppWizard has created this ConsoleApplication1 application for you. + +This file contains a summary of what you will find in each of the files that +make up your ConsoleApplication1 application. + + +ConsoleApplication1.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. + +ConsoleApplication1.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). + +ConsoleApplication1.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 ConsoleApplication1.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/ConsoleApplication1/ConsoleApplication1/stdafx.cpp b/ConsoleApplication1/ConsoleApplication1/stdafx.cpp new file mode 100644 index 0000000..f1d63e0 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// ConsoleApplication1.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/ConsoleApplication1/ConsoleApplication1/stdafx.h b/ConsoleApplication1/ConsoleApplication1/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/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/ConsoleApplication1/ConsoleApplication1/targetver.h b/ConsoleApplication1/ConsoleApplication1/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/ConsoleApplication1/ConsoleApplication1/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/ConsoleApplication1/ipch/consoleapplication1-7daff2d8/consoleapplication1-3c45e224.ipch b/ConsoleApplication1/ipch/consoleapplication1-7daff2d8/consoleapplication1-3c45e224.ipch new file mode 100644 index 0000000..8f743aa Binary files /dev/null and b/ConsoleApplication1/ipch/consoleapplication1-7daff2d8/consoleapplication1-3c45e224.ipch differ diff --git a/ConsoleApplication1/lab1/Debug/lab1.exe b/ConsoleApplication1/lab1/Debug/lab1.exe new file mode 100644 index 0000000..0090f3a Binary files /dev/null and b/ConsoleApplication1/lab1/Debug/lab1.exe differ diff --git a/ConsoleApplication1/lab1/Debug/lab1.ilk b/ConsoleApplication1/lab1/Debug/lab1.ilk new file mode 100644 index 0000000..c6fc815 Binary files /dev/null and b/ConsoleApplication1/lab1/Debug/lab1.ilk differ diff --git a/ConsoleApplication1/lab1/Debug/lab1.pdb b/ConsoleApplication1/lab1/Debug/lab1.pdb new file mode 100644 index 0000000..1fa70cc Binary files /dev/null and b/ConsoleApplication1/lab1/Debug/lab1.pdb differ diff --git a/ConsoleApplication1/lab1/ipch/lab1-fa38a0a4/lab1-61d90eac.ipch b/ConsoleApplication1/lab1/ipch/lab1-fa38a0a4/lab1-61d90eac.ipch new file mode 100644 index 0000000..c2bb0fa Binary files /dev/null and b/ConsoleApplication1/lab1/ipch/lab1-fa38a0a4/lab1-61d90eac.ipch differ diff --git a/ConsoleApplication1/lab1/lab1.sdf b/ConsoleApplication1/lab1/lab1.sdf new file mode 100644 index 0000000..aa96e4e Binary files /dev/null and b/ConsoleApplication1/lab1/lab1.sdf differ diff --git a/ConsoleApplication1/lab1/lab1.sln b/ConsoleApplication1/lab1/lab1.sln new file mode 100644 index 0000000..39ad944 --- /dev/null +++ b/ConsoleApplication1/lab1/lab1.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}") = "lab1", "lab1\lab1.vcxproj", "{09E49397-0902-4753-B2F9-93EB225267E4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {09E49397-0902-4753-B2F9-93EB225267E4}.Debug|Win32.ActiveCfg = Debug|Win32 + {09E49397-0902-4753-B2F9-93EB225267E4}.Debug|Win32.Build.0 = Debug|Win32 + {09E49397-0902-4753-B2F9-93EB225267E4}.Release|Win32.ActiveCfg = Release|Win32 + {09E49397-0902-4753-B2F9-93EB225267E4}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ConsoleApplication1/lab1/lab1.v12.suo b/ConsoleApplication1/lab1/lab1.v12.suo new file mode 100644 index 0000000..889eeb3 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1.v12.suo differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.log b/ConsoleApplication1/lab1/lab1/Debug/lab1.log new file mode 100644 index 0000000..fa9716d --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/Debug/lab1.log @@ -0,0 +1,15 @@ +Build started 1/23/2015 11:33:06 AM. +Project "C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\lab1\lab1\lab1.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\lab1.pch" /Fo"Debug\\" /Fd"Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:prompt lab1.cpp + lab1.cpp +c:\users\ieuser\cpp_lab_02\consoleapplication1\lab1\lab1\lab1.cpp(16): 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\ConsoleApplication1\lab1\Debug\lab1.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\ConsoleApplication1\lab1\Debug\lab1.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\lab1\Debug\lab1.lib" /MACHINE:X86 Debug\lab1.obj + Debug\stdafx.obj + lab1.vcxproj -> C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\lab1\Debug\lab1.exe +Done Building Project "C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\lab1\lab1\lab1.vcxproj" (Build target(s)). + +Build succeeded. + +Time Elapsed 00:00:02.05 diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.obj b/ConsoleApplication1/lab1/lab1/Debug/lab1.obj new file mode 100644 index 0000000..9c46441 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.obj differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.pch b/ConsoleApplication1/lab1/lab1/Debug/lab1.pch new file mode 100644 index 0000000..09ecb03 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.pch differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.read.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.read.1.tlog new file mode 100644 index 0000000..a1e3173 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.read.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.write.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.write.1.tlog new file mode 100644 index 0000000..0d60e34 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/CL.write.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/cl.command.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/cl.command.1.tlog new file mode 100644 index 0000000..626c0a9 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/cl.command.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/lab1.lastbuildstate b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/lab1.lastbuildstate new file mode 100644 index 0000000..95a3eab --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/lab1.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|C:\Users\IEUser\Cpp_Lab_02\ConsoleApplication1\lab1\| diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.command.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.command.1.tlog new file mode 100644 index 0000000..ea9ad20 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.command.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.read.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.read.1.tlog new file mode 100644 index 0000000..2f8fcf8 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.read.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.write.1.tlog b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.write.1.tlog new file mode 100644 index 0000000..4ceb452 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/lab1.tlog/link.write.1.tlog differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/stdafx.obj b/ConsoleApplication1/lab1/lab1/Debug/stdafx.obj new file mode 100644 index 0000000..53a3561 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/stdafx.obj differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/vc120.idb b/ConsoleApplication1/lab1/lab1/Debug/vc120.idb new file mode 100644 index 0000000..e008d85 Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/vc120.idb differ diff --git a/ConsoleApplication1/lab1/lab1/Debug/vc120.pdb b/ConsoleApplication1/lab1/lab1/Debug/vc120.pdb new file mode 100644 index 0000000..911e80a Binary files /dev/null and b/ConsoleApplication1/lab1/lab1/Debug/vc120.pdb differ diff --git a/ConsoleApplication1/lab1/lab1/ReadMe.txt b/ConsoleApplication1/lab1/lab1/ReadMe.txt new file mode 100644 index 0000000..ba2af0f --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/ReadMe.txt @@ -0,0 +1,40 @@ +======================================================================== + CONSOLE APPLICATION : lab1 Project Overview +======================================================================== + +AppWizard has created this lab1 application for you. + +This file contains a summary of what you will find in each of the files that +make up your lab1 application. + + +lab1.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. + +lab1.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). + +lab1.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 lab1.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/ConsoleApplication1/lab1/lab1/lab1.cpp b/ConsoleApplication1/lab1/lab1/lab1.cpp new file mode 100644 index 0000000..3ad4785 --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/lab1.cpp @@ -0,0 +1,36 @@ +// lab1.cpp : Defines the entry point for the console application. +//pope tom helped me with the while loop i am not very good at this + + + +#include "stdafx.h" +#include +#include +using namespace std; + +int main() + +{ + int CoinToss = 0; + int coin = 0; + int heads = 0; + int tails = 0; + srand(time(NULL)); + + cout << "I will flip this coin 100 times." << endl; + cout << "I will then print the results." << endl; + + while (CoinToss < 100){ + coin = rand() % 2; + if (coin == 1){ + heads++;} + else{ + tails++;} + CoinToss++; + } + cout << "The Results are!" << endl; + cout << heads << " heads and " << tails << "tails." << endl; + cout << "Press to exit!"; + getchar(); + return 0; +} \ No newline at end of file diff --git a/ConsoleApplication1/lab1/lab1/lab1.vcxproj b/ConsoleApplication1/lab1/lab1/lab1.vcxproj new file mode 100644 index 0000000..79f826d --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/lab1.vcxproj @@ -0,0 +1,95 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {09E49397-0902-4753-B2F9-93EB225267E4} + Win32Proj + lab1 + + + + 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/ConsoleApplication1/lab1/lab1/lab1.vcxproj.filters b/ConsoleApplication1/lab1/lab1/lab1.vcxproj.filters new file mode 100644 index 0000000..22899bf --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/lab1.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/ConsoleApplication1/lab1/lab1/stdafx.cpp b/ConsoleApplication1/lab1/lab1/stdafx.cpp new file mode 100644 index 0000000..e5de1d4 --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : source file that includes just the standard includes +// lab1.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/ConsoleApplication1/lab1/lab1/stdafx.h b/ConsoleApplication1/lab1/lab1/stdafx.h new file mode 100644 index 0000000..b005a83 --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/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/ConsoleApplication1/lab1/lab1/targetver.h b/ConsoleApplication1/lab1/lab1/targetver.h new file mode 100644 index 0000000..87c0086 --- /dev/null +++ b/ConsoleApplication1/lab1/lab1/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