Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 1.198 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
1.198
Dung lượng
6,91 MB
Nội dung
[...]... Starting Outwith C++ Series includes three books, one of which is sure to fit your course: • Starting Outwith C++: Control Structures through Objects; • Starting Outwith C++: Early Objects; • Starting Outwith C++: Brief Version The following chart will help you determine which book is right for your course FROM CONTROL STRUCTURES THROUGH OBJECTS BRIEF VERSION EARLYOBJECTS LATE INTRODUCTION OF OBJECTS. .. Answers to Odd-Numbered Review Questions xiii This page intentionally left blank Preface Welcome to Starting Outwith C++: Early Objects, 7th Edition This book is intended for use in a two-term or three-term C++ programming sequence, or an accelerated one-term course Students new to programming, as well those with prior course work in other languages, will find this text beneficial The fundamentals of programming... copyeditor, Evelyn Perricone, who dedicated many hours to making this book the best book it could be You are great people to work with! About the Authors Tony Gaddis is the principal author of the StartingOutWith series of textbooks He is a highly acclaimed instructor with twenty years of experience teaching computer science courses at Haywood Community College Tony was previously selected as the... Chapter 7 Chapter 7, Introduction to Classes and Objects, has been reorganized and almost entirely rewritten to start right in with classes and objects, instead of introducing structures first xv xvi Preface • Greater Focus on Object-Oriented Programming Many examples throughout the text have been rewritten to incorporate appropriate use of classes and objects • Reusability Material has been added illustrating... software that transforms computers into the specialized tools of many trades Without programmers, the users of computers would have no software, and without software, computers would not be able to do anything Computer programming is both an art and a science It is an art because every aspect of a program should be designed with care and judgment Listed below are a few of the things that must be designed... Devices Output is any information the computer sends to the outside world It might be a sales report, a list of names, or a graphic image The information is sent to an output device, which formats and presents it Common output devices are computer screens, printers, and speakers Output sent to a computer screen is sometimes called soft copy, while output sent to a printer is called hard copy Disk drives,... INTRODUCTION OF OBJECTS Classes are introduced in Chapter 7, after control structures and functions, but before arrays and pointers Their use is then integrated into the remainder of the text Advanced OOP topics, such as inheritance and polymorphism, are covered in Chapters 11 and 15 USE OF C-STRINGS Null-terminated C-strings are used throughout, with the C++ string class covered briefly USE OF string OBJECTS. .. library string class objects are used throughout, with C-strings covered briefly INTRODUCTION OF DATA STRUCTURES AND RECURSION Linked lists, stacks and queues, and binary trees are introduced in the final chapters of the standard text Recursion is covered after stacks and queues, but before binary trees These topics are not covered in the brief text, though it does have appendices dealing with linked lists... 13.8 13.9 13.10 13.11 Advanced File and I/O Operations 829 Files 829 Output Formatting 838 Passing File Stream Objects to Functions 845 More Detailed Error Testing 847 Member Functions for Reading and Writing Files 849 Binary Files 862 Creating Records with Structures 866 Random-Access Files 871 Opening a File for Both Input and Output 878 Online Friendship Connections Case Study 883 Tying It All Together:... gaddis/ VideoNotes icons appear throughout the text, alerting the student to videos about specific topics Checkpoints Checkpoints are questions placed throughout each chapter as a selftest study aid Answers for all Checkpoint questions are provided on the student CD so students can check how well they have learned a new topic Notes Notes appear at appropriate places throughout the text They are short explanations . Questions
This page intentionally left blank
xv
Preface
Welcome to Starting Out with C++: Early Objects, 7th Edition. This book is intended for use
in a two-term. caps.
Library of Congress Cataloging-in-Publication Data
Gaddis, Tony.
Starting out with C++ : early objects / Tony Gaddis, Judy Walters, Godfrey Muganda.—Seventh