[Skip Navigation] [CSUSB] / [CNS] / [Comp Sci & Eng Dept] / [R J Botting] / [CSci202] / project4
[Text Version] [Syllabus] [Schedule] [Glossary] [Resources] [Grading] [Contact] [Question] [Search ]
Notes: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]
Labs: [01] [02] [03] [04] [05] [06] [07] [08] [09] [10]
Thu May 28 10:39:46 PDT 2009

Contents


    Project 3 Chapter 17 Files

      Goal

      Show how well you understand C++ file handling.

      Notes

      1. Don't forget to open and close a file! To get full credit you must show that you can do this.
      2. Remember that disks (files) are thousands of times bigger and slower than RAM. Never input a complete file when you can do it one piece at a time.

      Exercises

        17.10+17.9+17.8+17.3 Matching transaction with master file

        Tougher logic than it looks.

        17.12 Tool inventory

        Random access file. Scary.

        17.13 Telephone Number Word Generator

        Note -- I expect you to output every combination of letters -- even if they are not words in your favorite language. Rely on the user to spot a word in their language that means something memorable to them. For example: "DEKNUTH" has a meaning for me, but is not in most dictionaries.

        When you output to a file -- I can run a spell checker on the file and so get the correctly spelled words!

        17.14 Sizes of data types

    Abbreviations

  1. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
  2. class::="A description of a set of similar objects that have similar data plus the functions needed to manipulate the data".
  3. Data_Structure::=A small data base.
  4. Function::programming=A selfcontained and named piece of program that knows how to do something.
  5. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
  6. KDE::="Kommon Desktop Environment".
  7. object::="A little bit of knowledge -- some data and some know how", and instance of a class".
  8. OOP::="Object-Oriented Programming", Current paradigm for programming.
  9. Semantics::=Rules determining the meaning of correct statements in a language.
  10. SP::="Structured Programming", a previous paradigm for programming.
  11. STL::="The standard C++ library of classes and functions" -- also called the "Standard Template Library" because many of the classes and functions will work with any kind of data.
  12. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
  13. Q::software="A program I wrote to make software easier to develop",
  14. TBA::="To Be Announced", something I should do.
  15. TBD::="To Be Done", something you have to do.
  16. UML::="Unified Modeling Language".
  17. void::C++Keyword="Indicates a function that has no return".

End