CIS-255 Home:
http://www.c-jump.com/bcc/c255c/c255syllabus.html
2014 CIS-255 C++ Samples
Stack of integers
-
Stack.h
(download) Stack class declaration
-
Stack.cpp
(download) Stack class implementation
-
main.cpp
(download) main entry point
C++ References
-
swap.cpp
(download) swap function using pointers and references
Stack of integers v2
-
Stack.h
(download) Stack class declaration with copy constructor and destructor
-
Stack.cpp
(download) Stack class implementation with copy constructor and destructor
-
main.cpp
(download) main entry point
Stack of integers v3
-
Stack.h
(download) Stack class declaration with overloaded assignment operator
-
Stack.cpp
(download) Stack class with overloaded assignment operator
-
main.cpp
(download) main entry point
Stack of integers v4
-
Stack.h
(download) Stack class declaration with move constructor and initializer list constructor
-
Stack.cpp
(download) Stack class implementation with copy constructor and destructor
-
main.cpp
(download) main entry point
std::vector demo
-
vector_v1.cpp
(download) typedef, basic_string, array, vector::at( ), try and catch, std::out_of_range
-
vector_v2.cpp
(download) auto, std::sort( ), std::find( ), std::vector< >::iterator
std::set demo, range-based for loop
-
main_set.cpp
(download) unique integer entry
std::map and auto keyword
-
main_map_2.cpp
(download) phone book demo app
std::copy from array to std::vector
-
main_copy.cpp
(download) copy algorithm demo and half-open range
Inheritance demo
-
main_01_simple.cpp
(download) base class Fl_Box, derived class CDrawBox
Inheritance demo, virtual function
-
main_02_virtual.cpp
(download) base class Fl_Box, derived class CDrawBox
vector of shapes
-
main.cpp
(download) std::unique_ptr, std::vector
-
shapes.h
(download) class inheritance and virtual functions
Inheritance demo, pure virtual function
-
main_04_inheritance.cpp
(download) CPrimitive, CPrimitiveLine, CPrimitiveCircle, CPrimitiveRectangle
Inheritance demo, vector of CPrimitive*
-
main_05_inheritance.cpp
(download) CPrimitive, CPrimitiveLine, CPrimitiveCircle, CPrimitiveRectangle