• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
 CodeWarrior
 
Principles ofProgramming
   M   e   t   r   o  w   e   r   k   s
   C   o   d   e   W   a   r   r   i   o   r
   T   M
 
   C   D
Because of last-minute changes to CodeWarrior, some information in thismanual may be out of date. Please read all the Release Notes files that comewith CodeWarrior for the latest information.
 
 Metrowerks CodeWarrior Copyright ©1993-1995 by Metrowerks Inc. and its Licensors. Allrights reserved.
 Documentation stored on the compact disc may be printed by licensee for personal use.Except for the foregoing, no part of this documentation may be reproduced or transmitted inany form by any means, electronic or mechanical, including photocopying, recording, or anyinformation storage and retrieval system, without permission in writing from Metrowerks Inc.Metrowerks, the Metrowerks logo and Software at Work are registered trademarks of Metrowerks Inc. CodeWarrior, PowerPlant, and PowerPlant Constructor are trademarks of Metrowerks Inc.All other trademarks or registered trademarks are the property of their respective owners.
 ALL SOFTWARE AND DOCUMENTATION ON THE COMPACT DISC ARE SUBJECTTO THE LICENSE AGREEMENT IN THE CD BOOKLET.Canada and International
 Metrowerks Inc.1500 du College, suite 300St. Laurent, QCH4L 5G6 Canadavoice: (514) 747-5999fax: (514) 747-2822
 U.S.A.
 Metrowerks CorporationSuite 310The MCC Building3925 West Braker LaneAustin, TX 78759-5321voice: 512-305-0400fax: 512-305-0440
Metrowerks Mail Order
 voice: (800) 377-5416 or (419) 281-1802fax: (419) 281-6883World Wide Web site (Internet):http://www.metrowerks.comRegistration information (Internet):register@metrowerks.comTechnical support (Internet):support@metrowerks.comSales, marketing, & licensing (Internet):sales@metrowerks.comAppleLink:METROWERKSAmerica OnLine:goto: METROWERKSCompuserve:goto: METROWERKSeWorld:goto: METROWERKS
 
Table of Contents
iii
Table of Contents
1.1Preview....................................................................141.2Introduction to The Principles of Programming........15A Global View.........................................................15The Road Ahead.......................................................16Signs Along the Road...............................................171.3Computers................................................................18A Low Level View...................................................18Systems and Their Environments...............................19History of Programming and the Earth.....................211.4Review Top Ten Things to Remember....................241.5Glossary...................................................................251.6Problems..................................................................27
2.1Preview....................................................................302.2Problem Solving and the Computer..........................31Step 1 Problem Definition.......................................32Step 2 Solution Design............................................33Step 3 Solution Refinement......................................34Step 4 Testing Strategy Development.......................35Step 5 Program Coding and Testing........................36Step 6 Documentation Completion..........................37Step 7 Program Maintenance...................................37Using the Problem Solving Method..........................38Problems and Plans Dividing and Conquering........382.3Break-Out Diagrams..................................................39More on Break-Out Diagrams...................................412.4Algorithms and Their Representations.......................45Modifying Algorithms..............................................47Alternative Algorithms.............................................52Equivalence of Algorithms........................................53Testing......................................................................542.5Programming Languages..........................................56Communicating Algorithms......................................56Basic.........................................................................56Fortran.....................................................................57Pascal.......................................................................57Modula-2..................................................................58C..............................................................................58
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...