-
> Or something like that. The getch() thing is right, right?
Does it work? If it does, it's right!
One thing that could be said about getch() is the fact that some compilers don't have it. It's non standard. So, this code will not be portable because of that. If that's not an issue for you right now, or you just don't have an opinion yet, don't worry about it. IMO, it's fine for such a small personal program.
[EDIT]
Oh, you need a semi colon after the call to getch() to be clear. :)
[/EDIT]
-
Well, I got it working, and I'm starting on switches in the book tomorrow, since it's too late for me to think right now. Anyway, I hope to make some improvements on it. Thanks again for your help.
-
> Well, I got it working
That's great.
> I'm starting on switches in the book tomorrow
Those are in the FAQ at this website, and are pretty simple.
> Thanks again for your help.
You're welcome.