وبلاگ بلیان

Object-oriented Programming with ANSI-C

جلد کتاب Object-oriented Programming with ANSI-C

معرفی کتاب «Object-oriented Programming with ANSI-C» نوشتهٔ Yuk Hui و Axel-Tobias Schreiner، منتشرشده توسط نشر Axel T. Schreiner / Lulu در سال 1999. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Object-oriented programming is the current cure-all — although it has been around for much more then ten years. At the core, there is little more to it then finally applying the good programming principles which we have been taught for more then twenty years. C++ (Eiffel, Oberon-2, Smalltalk ... take your pick) is the New Language because it is object-oriented — although you need not use it that way if you do not want to (or know how to), and it turns out that you can do just as well with plain ANSI-C. Only object-orientation permits code reuse between projects — although the idea of subroutines is as old as computers and good programmers always carried their toolkits and libraries with them.This book is not going to praise object-oriented programming or condemn the Old Way. We are simply going to use ANSI-C to discover how object-oriented programming is done, what its techniques are, why they help us solve bigger problems, and how we harness generality and program to catch mistakes earlier. Along the way we encounter all the jargon — classes, inheritance, instances, linkage, methods, objects, polymorphisms, and more — but we take it out of the realm of magic and see how it translates into the things we have known and done all along.I had fun discovering that ANSI-C is a full-scale object-oriented language. Preface......Page 1 Contents......Page 3 Abstract Data Types......Page 7 Example - Set......Page 8 Memory Management......Page 9 Implementation - Set......Page 10 Another Implementation - Bag......Page 13 Exercises......Page 15 Constructors & Destructors......Page 17 Methods, Messages, Classes & Objects......Page 18 Selectors, Dynamic Linkage & Polymorphisms......Page 19 Application......Page 22 Implementation - String......Page 23 Another Implementation - Atom......Page 24 Exercises......Page 26 Main Loop......Page 27 Scanner......Page 28 Processor......Page 29 Information Hiding......Page 30 Dynamic Linkage......Page 31 Postfix Writer......Page 32 Infix Output......Page 34 Summary......Page 35 Superclass - Point......Page 36 Superclass Implementation - Point......Page 37 Inheritance - Circle......Page 38 Linkage & Inheritance......Page 40 Static & Dynamic Linkage......Page 41 Visibility & Access Functions......Page 42 Subclass Implementation - Circle......Page 44 Summary......Page 45 Multiple Inheritance......Page 47 Exercises......Page 48 Using Variables......Page 49 Screener - Name......Page 51 Superclass Implementation - Name......Page 52 Subclass Implementation - Var......Page 54 Assignment......Page 55 Mathematical Functions - Math......Page 56 Exercises......Page 59 Requirements......Page 60 Metaclasses......Page 61 Roots - Object & Class......Page 62 Subclassing - Any......Page 63 Implementation - Object......Page 65 Selectors......Page 68 Superclass Selectors......Page 69 New Metaclass - PointClass......Page 71 Summary......Page 73 Point revisited......Page 76 Design......Page 81 Preprocessing......Page 82 Implementation Strategy......Page 83 Revisited......Page 85 Discussion......Page 87 Example - List, Queue & Stack......Page 88 Exercises......Page 92 Technique......Page 93 Example - list......Page 94 Coding Standard......Page 96 Avoiding Recursion......Page 100 Summary......Page 102 Exercises......Page 103 Initialization......Page 104 Initializer Lists - munch......Page 105 Functions for Objects......Page 107 Implementation......Page 108 Summary......Page 110 Exercises......Page 111 Abstract Base Classes......Page 112 Delegates......Page 114 Application Framework - Filter......Page 115 respondsTo Method......Page 118 Implementation......Page 120 Another Application - sort......Page 123 Summary......Page 124 Exercises......Page 125 Example......Page 126 Class Methods......Page 128 Implementing Class Methods......Page 129 Classy Calculator......Page 132 Summary......Page 141 Exercises......Page 142 Example......Page 143 Storing Objects - puto()......Page 148 Filling Objects - geto()......Page 150 Loading Objects - retrieve()......Page 151 Attaching Objects - value revisited......Page 153 Summary......Page 156 Exercises......Page 157 Strategy......Page 158 Implementation - Exception......Page 160 Examples......Page 162 Summary......Page 164 Exercises......Page 165 The Idea......Page 166 Implementation......Page 167 Object-oriented Design by Example......Page 170 Implementation - lc......Page 173 Character-based Interface - curses......Page 178 Graphical Interface - Xt......Page 181 Summary......Page 187 Exercises......Page 188 Functions......Page 189 Generic Pointers - void*......Page 190 const......Page 191 Structures......Page 192 Pointers to Functions......Page 193 Global Jumps - setjmp.h......Page 194 Variable Argument Lists - stdarg.h......Page 195 Memory Functions - string.h......Page 196 Architecture......Page 197 Recognition - parse.awk......Page 198 Database......Page 199 Report Generation - report.awk......Page 200 Line Numbering......Page 201 Report Files......Page 202 ooc Command......Page 203 Commands......Page 205 Root Classes......Page 212 GUI Calculator Classes......Page 216 Biblio......Page 221 A do-it-yourself guide to object-oriented programming using ANSI-C with detailed examples and a preprocessor (written in awk) to simplify coding.
دانلود کتاب Object-oriented Programming with ANSI-C