O'Reilly logo

Absolute Beginner’s Guide to C, 2nd Edition by 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. Playing Around with C Blackjack

Programming is not all work and no play, and the following Blackjack game proves it! The game provides a long example that you can study as you master C. Although the game has been kept extremely simple, 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 Blackjack. One of the reasons the program is kept simple is to keep it compiler-independent. For example, there is no screen-clearing routine. The comments in the function named dispTitle() explain what you might want to do to add a fancier screen-clearing routine than the generic one provided. Also, you might want to ...

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