Thread: Odd Problem with Calculator Prog.

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    3

    Odd Problem with Calculator Prog.

    I am having an odd error on my Calculator Program, For some reason, when I select Subtraction, I have to select it twice, because the first time, it makes the menu appear again. I probably just made some little mistake, cause I'm stupid, heh. But help would be appreciated.

  2. #2
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    logic defection?
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    3
    Wha? Heh, sorry, I'm a noob at C++, And this is about the most advanced stuff I know, heh.

  4. #4
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Look at your code very hard. Still can't find the problem? Hint: here's what you program does, step by step in chronological order

    1. Display options
    2. Prompt the user for his choice
    3. If he chooses 1, undergo addition
    4. Display the options
    5. Prompt the user for his choice
    6. If he chooses 2, undergo subtraction
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  5. #5
    Registered User
    Join Date
    Feb 2003
    Posts
    3
    Ok, I got it working, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  2. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  3. Odd Problem with Linking
    By jamez05 in forum C++ Programming
    Replies: 6
    Last Post: 09-21-2005, 01:49 PM
  4. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  5. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM