📄 page_ix12.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>page_ix12</title> <link rel="stylesheet" href="reset.css" type="text/css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <table summary="top nav" border="0" width="100%"> <tr> <td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_viii.html">< previous page</a></td> <td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_ix12</strong></td> <td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_x.html">next page ></a></td> </tr> <tr> <td align="left" colspan="3" style="background: #ffffff; padding: 20px;"> <table border="0" width="100%" cellpadding="0"><tr><td align="center"> <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td align="left"></td> <td align="right"></td> </tr></table></td></tr><tr><td align="left"><p></p><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="right"><font face="Times New Roman, Times, Serif" size="2" color="#FF0000">Page ix12</font></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">erly be called <i>OBP</i>object-based programming. OBP entails the use of existing, externally supplied C++ classes, <i>as-is.</i> Although OBP is useful in allowing the student to construct programs with interesting (for example, graphical) objects, true OOP requires much more: design and implementation of abstract data types (ADTs), the analysis and design of inheritance hierarchies, and the use of polymorphism in the form of run-time binding of operations to objects.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">The chapter organization of <i>Programming and Problem Solving with</i> C++ reflects a transitional approach to OOP. Although we provide an early preview of object-oriented design [Chapter 4), we delay a focused discussion until Chapter 16. The sequence of topics in Chapters 1 through 15 mirrors our belief that OOP is best understood after a firm grounding in algorithm design, control abstraction, and data abstraction. As one reviewer of the book manuscript, who was originally critical of the delayed introduction to OOP, stated in a subsequent review, The logical flow of the chapters is excellent. In the earlier review, I commented on the late introduction to OOP. I now (having nearly completed teaching a CS1 with C++) believe that is a good strategy.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="17"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Synopsis</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Chapter 1 is designed to create a comfortable rapport between students and the subject. Because many students now enter the introductory course with some prior exposure to computers, Chapter 1 moves rather quickly into meaty topics. It includes a section on problem-solving techniques and applies them immediately in a case study. By the end of Chapter 1, students have a basic knowledge of what computers are, what programming is, and the techniques used in problem solving.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">Because Chapter 2 is the student's first look at syntax, we include a section on metalanguages, which describes both BNF and syntax diagrams. Our experience is that students miss many of the subtleties of language syntax when it is presented by the traditional syntax diagrams. More generally, beginners have trouble translating from a metalanguage to programming language constructs when the metalanguage is formulated much differently from the programming language. Thus, Chapter 2 also introduces the syntax templatea metalanguage every bit as rigorous as the syntax diagram but one that closely resembles C++ constructs.</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td rowspan="5"></td> <td colspan="3" height="12"></td> <td rowspan="5"></td></tr><tr><td colspan="3"></td></tr><tr><td></td> <td><font face="Times New Roman, Times, Serif" size="3">The goal of Chapters 2 and 3 is to bring students to the point where they can design a simple program independently.In fact, students should be able to do so after reading Chapter 2. Because there are so many concepts and rules to learn before even the simplest program may be written, the chapter concludes with a streamlined discussion of program entry, correction, and execution. Students then can reinforce the new concepts by trying them on the computer. Chapter 3 fleshes out the rudiments of C++ with more complex expressions, function calls, and output. Unlike many books that detail <i>all</i> of the C++ data types and <i>all</i> of the C++ operators at once, these two</font></td><td></td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3" height="1"></td></tr></table></td></tr></table><p><font size="0"></font></p>聽 </td> </tr> <tr> <td align="left" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_viii.html">< previous page</a></td> <td align="center" width="40%" style="background: #EEF3E2"><strong style="color: #2F4F4F; font-size: 120%;">page_ix12</strong></td> <td align="right" width="30%" style="background: #EEF3E2"><a style="color: blue; font-size: 120%; font-weight: bold; text-decoration: none; font-family: verdana;" href="page_x.html">next page ></a></td> </tr> </table> </body> </html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -