diff options
| author | Evan <[email protected]> | 2022-10-03 19:56:52 -0700 |
|---|---|---|
| committer | Evan <[email protected]> | 2022-10-03 19:56:52 -0700 |
| commit | 3e3214b9957ddb8659abf39f1d4785edc12a98d2 (patch) | |
| tree | d9e07057d6affd8ef61b5967025a2e3836f5ae1c /CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | |
| parent | anwsers (diff) | |
| download | cst116-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.cpp | 12 |
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;
|