[Skip Navigation] [CSUSB] / [CNS] / [CSE] / [R J Botting] / [CSE201] / ccc
[Text Version] [Syllabus] [Schedule] [Glossary] [Labs] [Projects] [Resources] [Grading] [Contact] [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]
Wed Mar 2 10:52:37 PST 2011

Contents


    Horstmann's CCC 3rd edition library

      Classes for Graphics

      [ ccc.gif ]

      class GraphicWindow

        // cwin is a prefined oject of class Window. #include "ccc_win.h"
      1. coord(topleft_x,top_left_y, bottom_right_x, bottom_right_y)

      2. clear()

      3. get_string(prompt)
      4. get_int(prompt)
      5. get_double(prompt)
      6. get_mouse(prompt)

      7. operator << shape

      8. cwin is a GraphicWindow object.

      class Point

        #include "ccc_win.h"
      1. Point(x,y)

      2. get_x()
      3. get_y()

      4. move(dx, dy)

      class Circle

        #include "ccc_win.h"
      1. Circle(center, radius)

      2. get_center()
      3. get_radius()

      4. move(dx, dy)

      class Line

        #include "ccc_win.h"
      1. Line(start_point, end_point)

      2. get_start()
      3. get_end()
      4. move(dx, dy)

      class Message

        #include "ccc_win.h"
      1. Message(place, string)
      2. Message(place, x)

      3. get_start()
      4. get_text()

      5. move(dx, dy)

      Other Classes

      class Time

        #include "ccc_time.h"
      1. Time()
      2. Time(hour, min, secong)

      3. get_seconds()
      4. get_minutes()
      5. get_hours()

      6. add_second(nseconds)
      7. seconds_from(time)

      class Employee

        #include "ccc_empl.h"
      1. Employee(name, salary)

      2. get_name()
      3. get_salary()

      4. set_salary(newSalary)

      The wxWindows library

      TBA

    . . . . . . . . . ( end of section Horstmann's CCC 3rd edition library) <<Contents | End>>

    Abbreviations

  1. Algorithm::=A precise description of a series of steps to attain a goal, [ Algorithm ] (Wikipedia).
  2. Class::=A description of a type of object that includes the data it knows and the functions it can execute.
  3. Function::programming=A selfcontained and named piece of program that knows how to do something.
  4. Gnu::="Gnu's Not Unix", a long running open source project that supplies a very popular and free C++ compiler.
  5. OOP::="Object-Oriented Programming", Current paradigm for programming.
  6. Semantics::=Rules determining the meaning of correct statements in a language.
  7. SP::="Structured Programming", a previous paradigm for programming.
  8. Syntax::=The rules determining the correctness and structure of statements in a language, grammar.
  9. Q::software="A program I wrote to make software easier to develop",
  10. TBA::="To Be Announced", something I should do.
  11. TBD::="To Be Done", something you have to do.
  12. UML::="Unified Modeling Language", industry standard design and documentation diagrams.
  13. void::C++Keyword="Indicates a function that has no return".

End