ahh ok got it. Thanks!
I see that I also need to move the while statement in line 42 to just b4 line 48 the return 0 in order to work.
User Profile
Collapse
-
-
What is an alternative to a goto statement?
Code:#include <iostream> #include <cstdlib> #include <time.h> #include <string> #include <algorithm> using namespace std; int dieRoll(); int main(int argc, char* argv) { int looper = 0; int arrRolls[6]; int roll; string again = ""; srand((unsigned)time(0));
-
wutang replied to How do I create a C++ program displaying total sales made during the three months?in Cok here I go.
1. I can't seem to get a " Invalid entry" code if I enter say ' T ' instead of ' N' , ' S ', ' E', or ' W '.
2. I also added region = toupper(region) in order to make the letter of region capitalized. When it asks for a another region, I enter lower case ' w ' but it does not let me keep adding information. It will if I enter a capital ' W '.
3. Also im not sure how to make it stop after...Leave a comment:
-
wutang started a topic How do I create a C++ program displaying total sales made during the three months?in CHow do I create a C++ program displaying total sales made during the three months?
Create a program that displays the sum of the sales amounts made in each of four regions (North, South, East, West) during a three month period. The program should display the total sales made during the three months.
1. Complete the program by entering the C++ code that allows the user to enter four sets(one set for each region) of three sales amounts (one sales amount for each month). The program should display each region's total sales...
No activity results to display
Show More
Leave a comment: