Thread: switch statements and characters

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    2

    switch statements and characters

    im making a program that takes a user submitted equation and finds the answer. the user inputs integers and the operands he wants. i made a switch statement in which the cases depend which operands the user inputs. any ideas on how i can get this to work? should i use hexadecimals?

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Read the forum's homework policy...
    C Board - Announcements in Forum : General Programming Boards

    What you need to do is get working on this, take it as far as you can then post your code and ask specific questions about the areas giving you trouble...

    As for getting started... ask yourself: "What's the very first little thing I need to do" and get that working, then "What do I need next?" until it's finished.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Superfluous characters after string -- pointer issues?
    By marshaul in forum C Programming
    Replies: 21
    Last Post: 01-04-2011, 04:13 AM
  2. C code, MD5 hash, if statements assistance
    By letmein in forum C Programming
    Replies: 5
    Last Post: 09-14-2010, 09:25 AM
  3. Replacing characters
    By Beowolf in forum C++ Programming
    Replies: 8
    Last Post: 11-13-2007, 06:17 PM
  4. Characters in If Statements
    By Padawan in forum C Programming
    Replies: 10
    Last Post: 04-04-2004, 02:31 PM
  5. Switch Statements.
    By RealityFusion in forum C++ Programming
    Replies: 16
    Last Post: 08-19-2003, 11:55 PM

Tags for this Thread