![]() |
|
#1
|
|||
|
|||
problem with switch casein making menu option using switch case when i should use getchar?
i make an option menu that ecpect interger from user but when i enter char or word the program will print the menu and it become infinite loop. How to solve that problem ? thank you |
|||
|
#2
|
||||
|
||||
|
Quote:
I think I know what you are talking about but the old give a fish or teach to fish so first I'll show you my fish. fish one fish two fish three I found these by grabbing some lures and using the mighty "search" as a pole. Another good method is to troll the forum by setting the "show past 45 days" to "show since the beginning" and read the thread titles. I know there are some that talk about just what you are talking about. GIDForums uses google to search this site and you get results quickly with the word+word+word method. If that doesn't work, post some of your code and describe your problem in a little more detail. (me, I like to 'cast' into the waters until I snag something) Seriously, you will get better help (from the smart people here instead of me) if you post your code and some example input. __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
|||
|
|||
|
Quote:
I know it is a simple standard question then sorry if i posted too many lines here but i'm just a newbie :-) my problem is in the main file: CPP / C++ / C Code:
header file: CPP / C++ / C Code:
body function file CPP / C++ / C Code:
thank you |
|
#4
|
|||
|
|||
|
i forget to delete (in text.h)
extern address FirstAvail; another question this is out of topic with previous question why if changed CPP / C++ / C Code:
Whats wrong in this second function? CPP / C++ / C Code:
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c simple question problem with switch case | if13121 | C Programming Language | 2 | 25-Oct-2004 02:06 |
| Card Game Help! | Pravda | C++ Forum | 4 | 28-May-2004 09:40 |
| there has to be a better way | dabigmooish | C++ Forum | 8 | 17-May-2004 11:24 |
| C++ file I/O | CronoX | C++ Forum | 36 | 09-Mar-2004 18:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The