Thread: How do I input this?

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    7

    How do I input this?

    Specific Example:

    im inputting the following into a character array:

    42.5 + 7 - 3 =

    i want to separare the float and char from the char array into two separate stacks and also stop at the = sign.

    General Example:

    The expression above can change as it is inputted by the user. If anyone has any better way of inputting such an expression so that its parts go into two different arrays (one char and one float) and stops at the = please let me know how to do it....I have been working on this for a week and and it is the only part of my program that does not work. I appreciate all your help greatly.

    Thanks - Rob

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    7
    Oh and BTW for many of those who have given me examples of how to do this in the past week (thanks), I need something far less complex as I am just a beginning programmer.

    Thanks again - Rob

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem grabbing k/b input
    By falcon9 in forum C Programming
    Replies: 2
    Last Post: 10-28-2007, 11:47 AM
  2. continues input
    By Matty_Alan in forum C Programming
    Replies: 2
    Last Post: 06-22-2007, 10:04 PM
  3. Input statement problem
    By une in forum C Programming
    Replies: 3
    Last Post: 05-29-2007, 11:16 PM
  4. For loop problems, input please.
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-22-2007, 03:54 AM
  5. Simple Console Input for Beginners
    By jlou in forum C++ Programming
    Replies: 0
    Last Post: 06-21-2005, 01:50 PM