O'Reilly logo

C Programming Absolute Beginner’s Guide, Third Edition by Dean Miller, Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

B. The Draw Poker Program

Programming is not all work and no play, and the following Draw Poker game proves it! The game program provides a long example that you can study as you master C. Although the game is simple and straightforward, a lot happens in this program.

As with all well-written programs, this one is commented thoroughly. In fact, if you have read each chapter of this book, you will understand the programming of Draw Poker. One of the reasons the program is kept simple is to keep it compiler-independent. For your program, you might want to find out how your C compiler produces colors onscreen so that you can add pizazz to the game’s display. Also, when you master enough of C to understand the program’s inner workings, you’ll want ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required