出版時間:2009-10 出版社:機械工業(yè)出版社 作者:Bjarne Stroustrup 頁數(shù):1236
Tag標(biāo)簽:無
前言
Programming is the art of expressing solutions to problems so that a computer can execute those solutions. Much of the effort in programming is spent finding and refining solutions. Often, a problem is only fully understood through the process of programming a solution for it.This book is for someone who has never programmed before but is willing to work hard to learn. It helps you understand the principles and acquire the practical skills of programming using the C++ programming language. My aim is for you to gain sufficient knowledge and experience to perform simple useful programming tasks using the best up-to-date techniques. How long will that take? As part of a first-year university course, you can work through this book in a semester (assuming that you have a workload of four courses of average difficulty). If you work by yourself, don't expect to spend less time than that (maybe 15 hours a week for 14 weeks).Three months may seem a long time, but there's a lot to learn and you'll be writing your ftrst simple programs after about an hour. Also, all learning is gradual: each chapter introduces new useful concepts and illustrates them with examples inspired by real-world uses. Your ability to express ideas in code - getting a computer to do what you want it to do - gradually and steadily increases as you go along. I never say, "Learn a month's worth of theory and then see if you can use it."
內(nèi)容概要
·為編寫實際的應(yīng)用程序做好準(zhǔn)備 無論你是為了進行軟件開發(fā)還是進行其他領(lǐng)域的工作。本書假定你的最終目標(biāo)是學(xué)會編寫實際有用的程序。 ·以基本概念和基本技術(shù)為重點 與傳統(tǒng)的C++教材相比,本書對基本概念和基本技術(shù)的介紹更為深入。這會為你編寫有用、正確.易維護和有效的代碼打下堅實的基礎(chǔ)?! び矛F(xiàn)代c++語言編程 本書一方面介紹了通用的程序設(shè)計方法(包括面向?qū)ο蟪绦蛟O(shè)計和泛型程序設(shè)計)。另一方面還對軟件開發(fā)實踐中使用最廣泛的程序設(shè)計語言——C++進行了很好的介紹。本書從開篇就開始介紹現(xiàn)代C++程序設(shè)計技術(shù),并介紹了大量關(guān)于如何使用C++標(biāo)準(zhǔn)庫來簡化程序設(shè)計的內(nèi)容?! みm用于初學(xué)者以及任何希望學(xué)習(xí)新知識的人 本書主要是為那些從未編寫過程序的人編寫的。而且已經(jīng)由超過1000名大學(xué)一年級新生試用過。不過,對于專業(yè)人員和高年級學(xué)生來說,通過觀察公認(rèn)的程序設(shè)計大師如何處理編程中的各種問題。同樣也會獲得新的領(lǐng)悟和指引?! ぬ峁V闊的視野 本書第一部分非常廣泛地介紹了基本程序設(shè)計技術(shù),包括基本概念、設(shè)計和編程技術(shù)、語言特性以及標(biāo)準(zhǔn)庫。這些內(nèi)容教你如何編寫具有輸入、輸出、計算以及簡單圖形顯示等功能的程序。本書第二部分則介紹了一些更專門性的內(nèi)容(如文本處理和測試),并提供了大量的參考資料。
作者簡介
Bjarne Stroustrup英國劍橋大學(xué)計算機科學(xué)博士,C++語言的設(shè)計者和最初的實現(xiàn)者,也是《C++程序設(shè)計語言》(已由機械工業(yè)出版社引進出版)一書的作者。他現(xiàn)在是德州農(nóng)工大學(xué)計算機科學(xué)首席教授。1993年,由于在C++領(lǐng)域的重大貢獻,Bjame獲得TACM的Grace Murray Hopper大
書籍目錄
Preface Chapter 0 Notes to the Reader Chapter 1 Computers, People, and ProgrammingPart Ⅰ The Basics Chapter 2 Hello, World! Chapter 3 Objects, Types, and Values Chapter 4 Computation Chapter 5 Errors Chapter 6 Writing a Program Chapter 7 Completing a Program Chapter 8 Technicalities: Functions, etc. Chapter 9 Technicalities: Classes, etc.Part Ⅱ Input and Output Chapter 10 Input and Output Streams Chapter 11 Customizing Input and Output Chapter 12 A Display Model Chapter 13 Graphics Classes Chapter 14 Graphics Class Design Chapter 15 Graphing Functions and Data Chapter 16 Graphical User InterfacesPart Ⅲ Data and Algorithms Chapter 17 Vector and Free Store Chapter 18 Vectors and Arrays Chapter 19 Vector, Templates, and Exceptions Chapter 20 Containers and Iterators……Part Ⅳ Broadening the ViewPart Ⅴ AppendicesGlossaryBibliographyIndex
章節(jié)摘錄
插圖:The crucial concept here is feedback. We learn from experience and modify our behavior based on what we learn. That's essential for effective software development. For any large project, we don't know everything there is to know about the problem and its solution before we start. We can try out ideas and get feedback by programming, but in the earlier stages of development it is easier (and faster) to get feedback by writing down design ideas, trying out those design ideas, and using scenarios on friends. The best design tool we know of is a blackboard (use a whiteboard instead if you prefer chemical smells over chalk dust). Never design alone if you can avoid it! Don't start coding before you have tried out your ideas by explaining them to someone. Discuss designs and programming techniques with friends, colleagues, potential users, and so on before you head for the keyboard. It is amazing how much you can learn from simply trying to articulate an idea. After all, a program is nothing more than an expression (incode) of some ideas.Similarly, when you get stuck implementing a program, look up from the keyboard. Think about the problem itself, rather than your incomplete solution. Talk with someone: explain what you want to do and why it doesn't work. It's amazing how often you fred the solution just by carefully explaining the problem to someone. Don't debug (find program errors) alone if you don't have to!The focus of this book is implementation, and especially programming. We do not teach "problem solving" beyond giving you plenty of examples of problems and their solutions. Much of problem solving is recognizing a known problem and applying a known solution technique. Only when most subproblems are handled this way will you find the time to indulge in exciting and creative "outof-the-box thinking." So, we focus on showing how to express ideas dearly in code.
編輯推薦
《C++程序設(shè)計原理與實踐(英文版)》:C++之父Bjarne Stroustrup的最新力作。
圖書封面
圖書標(biāo)簽Tags
無
評論、評分、閱讀與下載