Thread: Need help using switch

  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,366
    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.

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, 09: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, 06:40 PM
  4. Switch Case
    By FromHolland in forum C++ Programming
    Replies: 7
    Last Post: 06-13-2003, 03:51 AM