diff options
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;
|