C++ By Example

所需积分/C币:5 2011-10-31 14:46:23 2.03MB PDF
2
收藏 收藏
举报

《C++ By Example》is one of several books in Que's new line of By Example series, The philosophy of these books is simple:The best way to teach computer programming concepts is with multiple examples. Command descriptions, format syntax, and language references are not enough to teach a newcomer a programming language. Only by looking at numerous examples and running sample programs can programming students get more than just a "feel" for language.
Publisher Book design Lloyd short Scott cook Michele laseau Publishing Manager Joseph Likert Production Analyst Mary beth Wakefield Development editor Stacy piquet Cover design Jean bisesi Production editor Kezia endsley Indexer Johnna vanHoose Copy editor Bryan ambre Production Caroline roop (book shepherd) Technical editor Jeff Baker, Paula carroll, Tim moore Michelle cleary, brook farling Kate Godfrey, Bob laroche, Editorial assistants Laurie lee, Jay lesandrini Rosemarie graham Cindy l. Phipps, Linda Seife Melissa keegan Phil worthington Composed in Palatino and MCPdigital typefaces by Prentice Hall Computer Publishing Screen reproductions in this book were created by means of the program Collage Plus from Inner Media, Inc, Hollis, Nh Dedication Dr. Rick Burgess, you shaped my life. Good or bad, I'm what l am thanks to your help I appreciate the many hours we' ve shared together G.M.P About the author Greg Perry has been a programmer and trainer for the past 14 years He received his first degree in computer science, then he received a Masters degree in corporate finance. He currently is a professor of computer science at Tulsa Junior College, as well as a computer consultant and a lecturer. greg perry is the author of 1l other computer books, including QBAsIC By Example and C By Example. Ir addition, he has published articles iblications, including PC World, Data Training, and Inside First Publisher. He has attended computer conferences and trade shows in several countries, and is fluent in nine computer languages Acknowledgments Much thanks to Stacy Hiquet and Joseph Wikert at Prentice Hall (Que) for trusting me completely with the direction and style of this book. The rest of my editors: Kezia endsley bryan gambrel, and the Technical editor Tim Moore kept me on track so the readers can have an accurate and readable text The Tulsa junior College administration continues to be sup portive of my writing. More importantly, Diane Moore, head of our Business Services Division, Tony Hirad, and Elaine Harris,are friends who make teaching a joy and not a job As always, my beautiful bride Jayne, and my parents Glen and Bettye perry are my closest daily companions. It is for them i work Trademark acknowledgments Que Corporation has made every attempt to supply trademark information about company names, products, and services men tioned in this book trademarks indicated below were derived from various sources. Que Corporation cannot attest to the accuracy of this information at&t is a registered trademark of american telephone Telegraph company FORTRAN and cobol are trademarks of international Business Machines Corporation (IBM) Turbo basiC is a registered trademark of borland International, Inc Turbo C is a registered trademark of borland International, Inc Microsoft QuickC and MS-DOS are registered trademarks of Microsoft Corporation ANSi is a registered trademark of american National standards Institute Overview I Introduction to c++ 1 Welcome to c++ 2 What Is a Program? 35 3 Your first c++ Program……….….….….….….…….……...151 4 Variables and literals 69 5 Character Arrays and strings .............................................99 6 Preprocessor directives 113 7 Simple input/ Output....................133 II∪ sing c++ Operators 8 Using o++ Math Operators and Precedence………163 9 Relational operators..... 185 10 Logical Operators .................. 207 11 Additional C++ Operators ............................................221 III C++ Constructs 12 The while Loop… 245 13 The for Loop 273 14 Other Loop options…………………………………295 15 The switch and goto Statements...............311 16 Writing c++ Functions...................... 331 IV Variable scope and modular Programming 17 Variable Scope...........353 18 Passing values∴….........379 19 Function Return values and prototypes ....................397 20 Default Arguments and Function Overloading 415 V Character Input/output and String functions 21 Device and Character Input/ Output 431 22 Character, String, and Numeric Functions ...............449 VI Arrays and pointers 23 Introducing Arrays………….473 24 Array processing……… 493 25 Multidimensional arrays……....1519 26 Pointers………1541 27 Pointers and arrays ................................................................557 ViI Structures and File input/output 28 Structures. ...............................................583 29 Arrays of structures 605 30 Sequential Files……………………………625 31 Random-Access files ................... 645 32 Introduction to Object-Oriented Programming...661 VIII References A Memory Addressing, Binary, and Hexadecimal Review.679 B Answers to Review questions...............701 C ASCII Table 719 D C++ Precedence table 729 E Keyword and function Reference...............733 f The Mailing List Application……………137 Glossary…… 番音音非音音音番非音音音音音音音鲁 747 Index 1761

...展开详情
试读 127P C++ By Example
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
上传资源赚积分or赚钱
    最新推荐
    C++ By Example 5积分/C币 立即下载
    1/127
    C++ By Example第1页
    C++ By Example第2页
    C++ By Example第3页
    C++ By Example第4页
    C++ By Example第5页
    C++ By Example第6页
    C++ By Example第7页
    C++ By Example第8页
    C++ By Example第9页
    C++ By Example第10页
    C++ By Example第11页
    C++ By Example第12页
    C++ By Example第13页
    C++ By Example第14页
    C++ By Example第15页
    C++ By Example第16页
    C++ By Example第17页
    C++ By Example第18页
    C++ By Example第19页
    C++ By Example第20页

    试读结束, 可继续阅读

    5积分/C币 立即下载 >