Orion Lawlor's Short STL Examples

These short examples illustrate the syntax and features of the C++ standard template library.
cout.cpp Shows how to use std::cout.
cout_manip.cpp Shows how to use std::ostream "manipulator" objects.
cout_method.cpp Shows how to use std::ostream formatter methods.
find.cpp Shows how to use std::find.
find_first_of.cpp Shows how to use std::find_first_of.
find_if.cpp Shows how to use std::find_if.
for_each.cpp Shows how to use std::for_each.
istringstream.cpp Shows how to use std::istringstream.
map.cpp Shows how to use std::map.
o_for_each.cpp Shows how to use std::for_each (with a function object).
ofstream.cpp Shows how to use std::istringstream.
ostringstream.cpp Shows how to use std::ostringstream.
Created by Orion Sky Lawlor, olawlor@acm.org, 2007-02-27
Placed in the public domain (download)
Back to
My Home Page