User Profile

Collapse

Profile Sidebar

Collapse
wutang
wutang
Last Activity: Dec 4 '09, 06:32 AM
Joined: Oct 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wutang
    replied to What is an alternative to a goto statement?
    in C
    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.
    See more | Go to post

    Leave a comment:


  • wutang
    replied to What is an alternative to a goto statement?
    in C
    oh and this is for C++
    See more | Go to post

    Leave a comment:


  • wutang
    started a topic What is an alternative to a goto statement?
    in C

    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));
    ...
    See more | Go to post

  • ok 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...
    See more | Go to post

    Leave a comment:


  • How 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...
    See more | Go to post
    Last edited by Banfa; Oct 21 '09, 08:03 PM. Reason: Added [Code]...[/code] tags
No activity results to display
Show More
Working...