next up previous
Next: C++ Resources Up: ALASKA SUMMER RESEARCH ACADEMY Previous: C++ Textbook

Example Programs

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.
shapes.cpp OpenGL program which manipulates simple geometric shapes.
fireworks.c OpenGL program using particle system to simulate fireworks.
water.c OpenGL program using particle system to simulate waterfall.



AK Summer Research Academy 2006-03-23