正在加载图片...
vi PREFACE the topics.There is no loss of continuity when the book is read in either of these ways.To ensure this continuity when you rearrange material,you may need to move sections rather than entire chapters.However,only large sec- tions in convenient locations are moved.To help customize a particular order for any class's needs,the end of this preface contains a dependency chart,and each chapter has a "Prerequisites"section that explains what material needs to be covered before each section in that chapter. Reordering 1:Earlier Classes To effectively design classes,a student needs some basic tools such as control structures and function definitions.This basic material is covered in Chapters 1 through 6.After completing Chapter 6,students can begin to write their own classes.One possible reordering of chapters that allows for such early coverage of classes is the following: Basics:Chapters 1,2,3,4,5,and 6.This material covers all control struc- tures,function definitions,and basic file I/O.Chapter 3,which covers ad- ditional control structures,could be deferred if you wish to cover classes as early as possible. Classes and namespaces:Chapter 10,Sections 11.1 and 11.2 of Chapter 11, and Chapter 12.This material covers defining classes,friends,overloaded operators,and namespaces. Arrays,strings and vectors:Chapters 7 and 8 Pointers and dynamic arrays:Chapter 9 Arrays in classes:Sections 11.3 and 11.4 of Chapter 11 Inheritance:Chapter 15 Recursion:Chapter 14 (Alternately,recursion may be moved to later in the course.) Pointers and linked lists:Chapter 13 Any subset of the following chapters may also be used: Exception handling:Chapter 16 Templates:Chapter 17 Standard Template Library:Chapter 18 Reordering 2:Classes Slightly Later but Still Early This version covers all control structures and the basic material on arrays be- fore doing classes,but classes are covered later than the previous ordering and slightly earlier than the default ordering. Basics:Chapters 1,2,3,4,5,and 6.This material covers all control struc- tures,function definitions,and the basic file I/O.vi Preface the topics. There is no loss of continuity when the book is read in either of these ways. To ensure this continuity when you rearrange material, you may need to move sections rather than entire chapters. However, only large sec￾tions in convenient locations are moved. To help customize a particular order for any class’s needs, the end of this preface contains a dependency chart, and each chapter has a “Prerequisites” section that explains what material needs to be covered before each section in that chapter. Reordering 1: Earlier Classes To effectively design classes, a student needs some basic tools such as control structures and function definitions. This basic material is covered in Chapters 1 through 6. After completing Chapter 6, students can begin to write their own classes. One possible reordering of chapters that allows for such early coverage of classes is the following: Basics: Chapters 1, 2, 3, 4, 5, and 6. This material covers all control struc￾tures, function definitions, and basic file I/O. Chapter 3, which covers ad￾ditional control structures, could be deferred if you wish to cover classes as early as possible. Classes and namespaces: Chapter 10, Sections 11.1 and 11.2 of Chapter 11, and Chapter 12. This material covers defining classes, friends, overloaded operators, and namespaces. Arrays, strings and vectors: Chapters 7 and 8 Pointers and dynamic arrays: Chapter 9 Arrays in classes: Sections 11.3 and 11.4 of Chapter 11 Inheritance: Chapter 15 Recursion: Chapter 14 (Alternately, recursion may be moved to later in the course.) Pointers and linked lists: Chapter 13 Any subset of the following chapters may also be used: Exception handling: Chapter 16 Templates: Chapter 17 Standard Template Library: Chapter 18 Reordering 2: Classes Slightly Later but Still Early This version covers all control structures and the basic material on arrays be￾fore doing classes, but classes are covered later than the previous ordering and slightly earlier than the default ordering. Basics: Chapters 1, 2, 3, 4, 5, and 6. This material covers all control struc￾tures, function definitions, and the basic file I/O
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有