Đang chuẩn bị liên kết để tải về tài liệu:
C++ Programming for Games Module II phần 1

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo tài liệu 'c++ programming for games module ii phần 1', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | C Programming for Game Developers Module II e-Institute Publishing Inc. Copyright 2005 e-Institute Inc. All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means electronic or mechanical including photocopying recording or by any information storage or retrieval system without prior written permission from e-Institute Inc. except for the inclusion of brief quotations in a review. Editor Susan Nguyen Cover Design Adam Hoult E-INSTITUTE PUBLISHING INC www.gameinstitute.com Frank Luna C Programming for Games II All brand names and product names mentioned in this book are trademarks or service marks of their respective companies. Any omission or misuse of any kind of service marks or trademarks should not be regarded as intent to infringe on the property of others. The publisher recognizes and respects all marks used by companies manufacturers and developers as a means to distinguish their products. E-INSTITUTE PUBLISHING titles are available for site license or bulk purchase by institutions user groups corporations etc. For additional information please contact the Sales Department at sales@gameinstitute.com Table of Contents MODULE II OVERVIEW.1 CHAPTER 10 INTRODUCTION TO TEMPLATES.2 Introduction.3 CHAPTER Objectives.3 10.1 CLASS Templates.4 10.1.1 Class Template Definition.7 10.1.2 Class Template Implementation.7 10.1.3 Class Template Instantiation.8 10.2 Example a Table Template Class.9 10.2.1 Table Data.9 10.2.2 Class Interface.10 10.2.3 The destroy Method.11 10.2.4 The resize Method.11 10.2.5 The Overloaded Parenthesis Operator.13 10.2.6 The Table Class. 13 10.3 Function Templates.17 10.3.1 Example Program.18 10.4 SUMMARY.21 10.5 Exercises.21 10.5.1 Template Array Class.21 10.5.2 Template Bubble Sort Function. 22 10.5.3 Table Driver.22 CHAPTER 11 ERRORS AND EXCEPTION HANDLING.23 Introduction.24 CHAPTER Objectives.24 11.1 Error Codes.24 11.2 Exception Handling basics.26 11.3 Assert.29 11.4 SUMMARY.31 11.5 Exercises.31 .