aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
diff options
context:
space:
mode:
authorEvan <[email protected]>2022-10-03 19:56:52 -0700
committerEvan <[email protected]>2022-10-03 19:56:52 -0700
commit3e3214b9957ddb8659abf39f1d4785edc12a98d2 (patch)
treed9e07057d6affd8ef61b5967025a2e3836f5ae1c /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
parentanwsers (diff)
downloadcst116-ch5-debugging-evanmihm-3e3214b9957ddb8659abf39f1d4785edc12a98d2.tar.xz
cst116-ch5-debugging-evanmihm-3e3214b9957ddb8659abf39f1d4785edc12a98d2.zip
2
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp')
-rw-r--r--CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
index 3c4deab..2545e26 100644
--- a/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
+++ b/CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp
@@ -66,6 +66,12 @@
*
********************************************************************/
+
+/*
+I had a lot of problems trying to follow the instuctions, VS didnt behave how it
+was suppose to.
+*/
+
#include <iostream>
#include <iomanip>
using std::cout;
@@ -74,14 +80,20 @@ using std::endl;
int main()
{
+ //defines the term money, and how much you have
float money = 123.45F;
+ //defines the term raise
float raise;
+ //displays in the command box "You have $"
cout << "You have $";
+ //diplays the amount of money/number that is defined
cout << money << endl;
// Breakpoint 1
// Put a breakpoint on the following line
+
+ //displays "Enter percent raise" then uses it as the 'raise'
cout << "Enter percent raise: ";
cin >> raise;