出版時(shí)間:2009-10 出版社:機(jī)械工業(yè)出版社 作者:Bjarne Stroustrup 頁(yè)數(shù):1236
Tag標(biāo)簽:無(wú)
前言
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)容概要
·為編寫(xiě)實(shí)際的應(yīng)用程序做好準(zhǔn)備 無(wú)論你是為了進(jìn)行軟件開(kāi)發(fā)還是進(jìn)行其他領(lǐng)域的工作。本書(shū)假定你的最終目標(biāo)是學(xué)會(huì)編寫(xiě)實(shí)際有用的程序?! ひ曰靖拍詈突炯夹g(shù)為重點(diǎn) 與傳統(tǒng)的C++教材相比,本書(shū)對(duì)基本概念和基本技術(shù)的介紹更為深入。這會(huì)為你編寫(xiě)有用、正確.易維護(hù)和有效的代碼打下堅(jiān)實(shí)的基礎(chǔ)。 ·用現(xiàn)代c++語(yǔ)言編程 本書(shū)一方面介紹了通用的程序設(shè)計(jì)方法(包括面向?qū)ο蟪绦蛟O(shè)計(jì)和泛型程序設(shè)計(jì))。另一方面還對(duì)軟件開(kāi)發(fā)實(shí)踐中使用最廣泛的程序設(shè)計(jì)語(yǔ)言——C++進(jìn)行了很好的介紹。本書(shū)從開(kāi)篇就開(kāi)始介紹現(xiàn)代C++程序設(shè)計(jì)技術(shù),并介紹了大量關(guān)于如何使用C++標(biāo)準(zhǔn)庫(kù)來(lái)簡(jiǎn)化程序設(shè)計(jì)的內(nèi)容?! みm用于初學(xué)者以及任何希望學(xué)習(xí)新知識(shí)的人 本書(shū)主要是為那些從未編寫(xiě)過(guò)程序的人編寫(xiě)的。而且已經(jīng)由超過(guò)1000名大學(xué)一年級(jí)新生試用過(guò)。不過(guò),對(duì)于專(zhuān)業(yè)人員和高年級(jí)學(xué)生來(lái)說(shuō),通過(guò)觀察公認(rèn)的程序設(shè)計(jì)大師如何處理編程中的各種問(wèn)題。同樣也會(huì)獲得新的領(lǐng)悟和指引?! ぬ峁V闊的視野 本書(shū)第一部分非常廣泛地介紹了基本程序設(shè)計(jì)技術(shù),包括基本概念、設(shè)計(jì)和編程技術(shù)、語(yǔ)言特性以及標(biāo)準(zhǔn)庫(kù)。這些內(nèi)容教你如何編寫(xiě)具有輸入、輸出、計(jì)算以及簡(jiǎn)單圖形顯示等功能的程序。本書(shū)第二部分則介紹了一些更專(zhuān)門(mén)性的內(nèi)容(如文本處理和測(cè)試),并提供了大量的參考資料。
作者簡(jiǎn)介
Bjarne Stroustrup英國(guó)劍橋大學(xué)計(jì)算機(jī)科學(xué)博士,C++語(yǔ)言的設(shè)計(jì)者和最初的實(shí)現(xiàn)者,也是《C++程序設(shè)計(jì)語(yǔ)言》(已由機(jī)械工業(yè)出版社引進(jìn)出版)一書(shū)的作者。他現(xiàn)在是德州農(nóng)工大學(xué)計(jì)算機(jī)科學(xué)首席教授。1993年,由于在C++領(lǐng)域的重大貢獻(xiàn),Bjame獲得TACM的Grace Murray Hopper大
書(shū)籍目錄
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è)計(jì)原理與實(shí)踐(英文版)》:C++之父Bjarne Stroustrup的最新力作。
圖書(shū)封面
圖書(shū)標(biāo)簽Tags
無(wú)
評(píng)論、評(píng)分、閱讀與下載
C++程序設(shè)計(jì)原理與實(shí)踐 PDF格式下載
250萬(wàn)本中文圖書(shū)簡(jiǎn)介、評(píng)論、評(píng)分,PDF格式免費(fèi)下載。 第一圖書(shū)網(wǎng) 手機(jī)版