From 3e3214b9957ddb8659abf39f1d4785edc12a98d2 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 3 Oct 2022 19:56:52 -0700 Subject: 2 --- CST116-Ch5-Debugging/CST116-Ch5-Debugging.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 #include 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; -- cgit v1.2.3