aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp3
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging-Psuedocode.txt0
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging-Solution.txt0
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj4
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj.filters8
5 files changed, 14 insertions, 1 deletions
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
index 7de2608..00f53a1 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Chambers.cpp
@@ -61,6 +61,7 @@ int main()
{
int i = 0;
int count;
+ count = i;
// Breakpoint 1
// Put a breakpoint on the following line
@@ -69,7 +70,7 @@ int main()
// Breakpoint 2
// Put a breakpoint on the following line
- for (count = 0; count < 10; count++);
+ for (count = 1; count < 10; count++);
cout << count << endl;
return 0;
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Psuedocode.txt b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Psuedocode.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Psuedocode.txt
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Solution.txt b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Solution.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging-Solution.txt
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj
index 05034a7..f6579ce 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj
@@ -130,6 +130,10 @@
<ItemGroup>
<ClCompile Include="CST116-Ch8-Debugging-Chambers.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch8-Debugging-Solution.txt" />
+ <Text Include="CST116-Ch8-Debugging-Psuedocode.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj.filters b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj.filters
index b7f3c3f..4fc1bd1 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj.filters
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.vcxproj.filters
@@ -19,4 +19,12 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch8-Debugging-Solution.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ <Text Include="CST116-Ch8-Debugging-Psuedocode.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file