Need help using switch

This is a discussion on Need help using switch within the C++ Programming forums, part of the General Programming Boards category; Gosh what a stupid mistake. Thanks for the help....

  1. #16
    Registered User
    Join Date
    Oct 2007
    Posts
    33
    Gosh what a stupid mistake. Thanks for the help.

  2. #17
    Registered User
    Join Date
    Oct 2007
    Posts
    33
    Ok having a problem. I have to multiply the total before the shipping cost (which is double) by the shipping cost (which is a int because it's in a switch). I keep getting another weird answer. It won't let me switch the shipping cost to double because it is in a switch. Any help?

  3. #18
    Registered User
    Join Date
    Jan 2005
    Posts
    7,319
    You are allowed to multiply an int and a double. You'll have to post your code.

  4. #19
    Registered User
    Join Date
    Jun 2006
    Posts
    75
    Quote Originally Posted by Sembhi View Post
    Ok having a problem. I have to multiply the total before the shipping cost (which is double) by the shipping cost (which is a int because it's in a switch). I keep getting another weird answer. It won't let me switch the shipping cost to double because it is in a switch. Any help?
    It shouldn't happen. Try posting some code so that we can have a look.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. ascii rpg help
    By aaron11193 in forum C Programming
    Replies: 18
    Last Post: 10-29-2006, 01:45 AM
  3. Switch
    By cogeek in forum C Programming
    Replies: 4
    Last Post: 12-23-2004, 05:40 PM
  4. Switch Case
    By FromHolland in forum C++ Programming
    Replies: 7
    Last Post: 06-13-2003, 03:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21