Problem in programming, no idea how to explain so please downlaod source and App.

This is a discussion on Problem in programming, no idea how to explain so please downlaod source and App. within the C++ Programming forums, part of the General Programming Boards category; Hey guy, I'm having trouble and i cant explain the error, i can complie fine but if you try feeding ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    16

    Problem in programming, no idea how to explain so please downlaod source and App.

    Hey guy, I'm having trouble and i cant explain the error, i can complie fine but if you try feeding your fish or applying for a new job or study/workingout, it wont allow you to quit at the main menu. Please download it and see if you can help me.

    Here

  2. #2
    ggs
    ggs is offline
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    not sure, but try:

    case 8:
    exit(0);

    note that in your current design, Menu() gets called again and again, and just builds up on the stack. recommend redesigning menu() so it loops UNTIL the user selects 8 (for exit), and having each of the functions called return to Menu() instead of calling Menu() again. additionally, handle "Invalid Selection" by using the default: case in your switch.
    .sect signature

  3. #3
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    Lol this sounded like some type of virus draw in.
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

Popular pages Recent additions subscribe to a feed

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