C++面向对象程序设计双语教程(第3版)全套PPT课件.pptx

C++面向对象程序设计双语教程(第3版)全套PPT课件.pptx

IntroductionC++面向对象程序设计双语教程(第3版)Chapter 1 01Overview of Programming What Is Programming?Much of human behavior and thought is characterized by logical sequences. Since infancy you have been learning how to behave and how to perform tasks. And you have learned to expect certain behavior from other people.Overview of Programming On the broad scale, mathematics could never have been developed without logically sequenced steps for solving problems and proving theorems. Mass production would never have worked without operations taking place in a certain order. Our whole civilization is based on the order of things and actions. We create order, both consciously and unconsciously,through a process that we call programming.Overview of Programming ProgrammingProgramming is planning how to solve a problem. No matter what method is usedthe pencil and paper, slide rule, adding a machine, or computer-problem solving requires programming.Of cours,how one program depends on the device one uses in problem-solving.Overview of Programming Programaming is planning the performance of a task or an event.Computer programming is the process of planning a sequence of steps for a computer to follow.Computer program is a sequence of instructions to be performed by a computer.Overview of Programming To write a sequence of instructions for a computer to follow, we must go through a three-phase process: problem-solving,implementation, and maintenance (see Figure 1-1).Overview of Programming Understand (define) the problem and what the solution must do. Analysis and specification.Develop a logical sequence of steps that solves the problem.General solution (algorithm).Follow the steps exactly to see if the solution does solve the problem. Verify.Overview of Programming An algorithm is a verbal or written description of a logical sequence of actions (or events). After developing a general solution, the programmer tests the algorithm, walking through each step mentally or manually. If the algorithm

文档评论(0)

1亿VIP精品文档

相关文档