Learn C++


Introduction
This book is designed to help you teach yourself how to program with C++. Just as you
can learn to walk one step at a time, you can learn to program in C++ one hour at a time.
Each lesson in this book has been designed so that you can read the entire lesson in just
an hour a day. It lays emphasis on the practical usage of the language, and helps you get
up-to-speed with concepts that are most important in writing C++ applications for realworld
usage.
By focusing for just an hour a day at a time, you’ll learn about such fundamentals as
managing input and output, loops and arrays, object-oriented programming, templates,
using the standard template library, and creating C++ applications—all in well-structured
and easy-to-follow lessons. Lessons provide sample listings—complete with sample output
and an analysis of the code—to illustrate the topics of the day.
To help you become more proficient, each lesson ends with a set of common questions
and answers, a quiz, and exercises. You can check your progress by examining the quiz
and exercise answers provided in Appendix D, “Answers.”
Who Should Read this Book
You don’t need any previous experience in programming to learn C++ with this book.
This book starts you from the beginning and teaches you both the language and the concepts
involved with programming C++. You’ll find the numerous examples of syntax and
detailed analysis of code an excellent guide as you begin your journey into this rewarding
environment. Whether you are just beginning or already have some experience programming,
you will find that this book’s clear organization makes learning C++ fast and Easy

Download Link Here
                                                                         





 A new approach to C++ programming
We assume that you want to learn quickly how to write useful C++ programs. Therefore, we start by explaining the most useful parts of C++. This strategy may seem obvious when we put it that way, but it has the radical implication that we do not begin by teaching C, even though C++ builds on C. Instead, we use high-level data structures from the start, explaining only later the foundations on which those data structures rest. This approach lets you to begin writing idiomatic C++ programs immediately.

Our approach is unusual in another way: We concentrate on solving problems, rather than on exploring language and library features. We explain the features, of course, but we do so in order to support the programs, rather than using the programs as an excuse to demonstrate the features.

Because this book teaches C++ programming, not just features/it is particularly useful for readers who already know some C++, and who want to use the language in a more natural, effective style. Too often, people new to C++ learn the language mechanics without learning how to apply the language to everyday problems.

Our approach works—for beginners and experienced programmers
We used to teach a week-long intensive C++ course every summer at Stanford University. We originally adopted a traditional approach to that course: Assuming that the students already knew C, we started by showing them how to define classes, and then moved systematically through the rest of the language. We found that our students would be confused and frustrated for about two days—until they had learned enough that they could start writing useful programs. Once they got to that point, they learned quickly.

When we got our hands on a C++ implementation that supported enough of what was then the brand-new standard library, we overhauled the course. The new course used the library right from the beginning, concentrated on writing useful programs, and went into details only after the students had learned enough to use those details productively.

The results were dramatic: After one day in the classroom, our students were able to write programs that had taken them most of the week in the old course. Moreover, their frustration vanished.

Download Link here





   Introduction
C++ was my first programming language. While I’ve since learned others, I’ve always thought C++ was the “best” programming language, perhaps because of the power it gives the programmer. Of course, this power is a double-edged sword, being also the power to hang yourself if you are not careful. Nonetheless, C++ has always been my favorite programming language.

C++ also has been the first choice of others, not just in the business world because of its power, but also in academia. Additionally, many other programming languages, including Java and C#, are based on C++. Indeed, the Java programming language was written using C++. Therefore, knowing C++ also makes learning other programming languages easier.

Who Should Read this Book
Anyone who will pay for it! Just kidding, though no buyers will be turned away.

It is hardly news that publishers and authors want the largest possible audience for their books. Therefore, this section of the introduction usually tells you this book is for you whoever you may be and whatever you do. However, no programming book is for everyone. For example, if you exclusively create game programs using Java, this book may not be for you (though being a community college teacher I may be your next customer if you create a space beasts vs. community college administrators game).

While this book is, of course, not for everyone, it very well may be for you. Many people need or want to learn C++, either as part of a degree program, job training, or even as a hobby. C++ is not the easiest subject to learn, and unfortunately many books don’t make learning C++ any easier, throwing at you a veritable telephone book of complexity and jargon. By contrast, this book, as its title suggests, is designed to “demystify” C++. Therefore, it goes straight to the core concepts and explains them in a logical order and in plain English.


    Download Link Here






                       Beginning C++ Game Programming


Introduction

Cutting-edge computer games rival the best that Hollywood has to offer in visual effects, musical score, and pure adrenaline rush. But games are a form of entertainment unlike any other; they can keep players glued to their monitors for hours on end. What sets games apart and makes them so engrossing is interactivity. In a computer game, you don't simply sit back and watch a hero fighting against all odds, you become the hero.
The key to achieving this interactivity is programming. It's programming that allows an alien creature, an attack squadron, or an entire army to react differently to a player in different situations. Through programming, a game's story can unfold in new ways. In fact, as the result of programming, a game can respond to a player in ways that the game creators might never have imagined.
Although there are literally thousands of computer programming languages, C++ is the game industry standard. If you were to wander the PC game section of your favorite store and grab a title at random, the odds are overwhelming that the game in your hand would be written largely or exclusively in C++. The bottom line is this: If you want to program computer games professionally, you must know C++.
The goal of this book is to introduce you to the C++ language from a game programming perspective. Although no single book can make you the master of two deep topics such as C++ and game programming, this book will start you on your journey.

Who This Book Is For

This book is for anyone who wants to program games. It's aimed at the total beginner and assumes no previous programming experience. If you're comfortable using your computer, then you can start your game programming odyssey right here. But just because this book is written for the beginner, that doesn't mean learning C++ and game programming will be easy. You'll have to read, work, and experiment. By the end of this book, you'll have a solid foundation in the game programming language of the professionals.


Download link here






0 comments:

Post a Comment

top