next up previous
Next: Resources Up: CS 202 Computer Science Previous: Lecture Topics

Lecture Examples

factorial.c Obscure C contest winner computes infinite precision factorials.
complex_struct.c Complex number type implemented as C structure.
complex_struct.cpp Complex number type implemented as a C++ structure.
complex_public.cpp Complex number type using public data members.
complex_class.cpp Complex number type implemented as a class.
complex_friend.cpp Complex number type using non-member function friends.
complex_over.cpp Complex number type with operator overloading.
complex_this.cpp Complex number type with cascading member functions.
st.cpp Derived class member function overrides base class definition.
fact_define.cpp Macro implementation of factorial function template.
fact_define.i Preprocessor output for factorial function macro.
array.cpp Array class template using static allocation.
Figure 9.25, Deitel 4th ed. Order of constructor/destructor calls with inheritance
Shapes Shape class hierarchy using virtual functions
Virtual Function Table Organization of virtual function table from Deitel.
shapes.cpp OpenGL program which manipulates simple geometric shapes.
cube.c A cube drawn with minimal OpenGL calls.
glutplane.c OpenGL program demonstrating animated flying paper airplanes.
triselect.c OpenGL program which changes colors of triangles.
fireworks.c OpenGL program simulating fireworks with particle system animation.
water.c OpenGL program simulating waterfall with particle system animation.
robot.c OpenGL program demonstrating object transformations.
bitfont.c OpenGL program demonstrating bitmapped text functions.
menu.cpp Menu program demonstrating use of system() function.


next up previous
Next: Resources Up: CS 202 Computer Science Previous: Lecture Topics
CS 202 Class Account 2007-12-24