Why Another Book on c++ and why Programming and Graphics? Anyone who has browsed through the 'Computing' section of a bookshop (assuming it has one) will not need much convincing that there are a lot of C++ books out there. So why add yet another to the shelf! This book attempts to introduce you to the C++ language via computer graphics because the object-oriented programming features of C++ naturally lend themselves to graphics. Thus, this book is based around a central theme: computer graphics and the development of 'real' object-oriented tools for graphical modelling. This approach is adopted (as opposed to learning by small, unrelated, often hypothetical, examples) because I didn't want to introduce C++ as a collection oflanguage features. While introducing the syntax and features of C++, it is just as important to demonstrate simultaneously the reason for such features and when to apply them - in otherwords,language and design are given equal priority. Also, a key objective in writing this book is to present you with a comprehensive introductory text on programming in the C++ language.
Sprache
Verlagsort
Verlagsgruppe
Illustrationen
Dateigröße
ISBN-13
978-1-4471-3378-0 (9781447133780)
DOI
10.1007/978-1-4471-3378-0
Schweitzer Klassifikation
1 Overview.- 2 The Development Environment.- 3 Getting Started.- 4 Fundamental Data Types, Declarations, Definitions and Expressions.- 5 Making Decisions and Repetition.- 6 Functions.- 7 Arrays.- 8 Structures, Unions, Enumerations and Typedefs.- 9 The C++ Class.- 10 Operators and Overloading.- 11 Friends.- 12 Pointers.- 13 Templates.- 14 Exception Handling.- 15 Inheritance.- 16 Run-Time Type Information and Casting.- 17 Input and Output, Files and Streams.- 18 The Preprocessor.- 19 Namespaces.- 20 An Application: a Simple Raytracing Program.- Conclusion.- Appendices.- A C++ Keywords.- B ASCII Character Set.- C Operators: Precedence, Associativity and Arity.- D Glossary.- References.