|
Yup... it's the Third Edition |
Evert
Member #794
November 2000
|
of Game Programming All in One. I'll be fair and say that most programming books ship with buggy code, but I'm rather surprised that this one sneaked through: char *s=""; int n, ax; //display joystick information sprintf(s, "Number of Joysticks: %d", num_joysticks);
|
Archon
Member #4,195
January 2004
|
Awww, and we are just about to release Allegro 5.... Waste of a book! |
X-G
Member #856
December 2000
|
Hello, Buffer Overflow. -- |
CGamesPlay
Member #2,559
July 2002
|
Let me be the first so say, Congratulations on acquiring the book finally, Evert! -- Ryan Patterson - <http://cgamesplay.com/> |
Evert
Member #794
November 2000
|
Oh, the book does cover Allegro 4.2, so it is actually a real update. And the code does seem better than what I've seen of the 2nd edition code. Minus the little bugger up there, of course. EDIT: I don't have the book. I was answering a question on the book's forums (see http://d2337290.u86.mygisol.com/forums/index.php?act=ST&f=7&t=792&s=43c7dc4545e68647de85934380ba2123). |
gnolam
Member #2,030
March 2002
|
What about conio.h and all that other crap? -- |
Kris Asick
Member #1,424
July 2001
|
Funny you brought this up, Evert. I just saw the second edition of that book in my local bookstore today and was surprised to see Allegro as the engine of choice in it! It didn't really cover anything new to me though so I decided not to spend $80 CAD on something I wasn't going to get much out of. But for anyone wanting to learn with Allegro, it does cover a LOT of ground. --- Kris Asick (Gemini) --- Kris Asick (Gemini) |
Kikaru
Member #7,616
August 2006
|
I got started with the second edition of that book. I found it quit helpful, and as a result I am actually working with Allegro. |
HoHo
Member #4,534
April 2004
|
It also teaches quite a bit about C if you start fixing all the bugs the code has __________ |
James Stanley
Member #7,275
May 2006
|
Did he even test that before getting it published? |
HoHo
Member #4,534
April 2004
|
It probably worked on his PC with his particular setup. We all know that when it works on our own machines it will surely work on every other OS/compiler combination also! __________ |
Kikaru
Member #7,616
August 2006
|
Try writing a bug-free coding book on your own, you'll see. |
Evert
Member #794
November 2000
|
As I said, most books have buggy code. This particular example shouldn't (doesn't) even run though... Quote: What about conio.h and all that other crap? I think it's gone and main now seems to be int main() as it should be. Haven't seen enough code to say for sure though. |
ReyBrujo
Moderator
January 2001
|
Hmm... oh, look, Evert has an account there, must be fun A real pity I am starting my holidays this Monday for two weeks, otherwise I may have considered buying it and sending it to you straight from Amazon, if you don't feel like buying it. -- |
Rash
Member #2,374
May 2002
|
X-G said: Hello, Buffer Overflow. Not only that, but we also have a non-const C-string pointing to a literal string, something which, off the top of my head, is either bad style or downright illegal, depending on the C/C++ standard used. |
|