On 10/11/06, storm3 <storm3@xxxxxxxxxxx> wrote:
I ran into this very same issue, a long, long time ago, when I was first learning C & C++, the solution I came upon back then was to use a flushbuffer function, can't remember the exact command now, I would simply use it at the end of the input routine, to ensure there were no left over remnants. Check into it, I believe it was a Microsoft command, not sure if they dropped it or not in their later compilers,
The command is fflush() and it is part of the standard library so it should be a part of any C environment you have.
this was after all, back in the quick C & Microsoft C++ 5 or something like that, can't remember for sure, I know I was also using Borlands Turbo C++ 3.0 at the time, at least for me, Quick C & Turbo C++ combined, along with a docked laptop, a desk with plenty of room for my book, the BEST book imho, Sams - Teach yourself C in 21 Days, now there have been several newer versions of this same book, not sure if it is as good though, the thing that put this book in the winner category, is the fact it got you up and running with concepts quickly, had you write small apps, which increased in size as you went, and then the quizzes at the end of each chapter, which required you to not just copy what they done during the chapter, but made you use your brain, to solve a new problem similar, but with a twist, so this put what you just learned to practical use, I can't remember who wrote this original book, it was yellow, but I would love the chance to thank him, and if anyone out there has this book, I would love to get the copy from you, as my (insert bad name here) ex-wife sold or gave away all my books, which were quite a few, well over a hundred to charity, and to various used bookstores, she gave them away, the only thing that makes me feel better is that maybe, just maybe, someone else would have the spark and inspiration, and have a life changing experience like I did. Because at the time I had crons disease, it really did change my life; it got my mind off my problems, and gave me a purpose.
I believe this is it:
http://www.amazon.com/Sams-Teach-Yourself-Days-6th/dp/0672324482
Chris
-- E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx> http://www.newio.org/ AIM: nystromchris
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html