CS3 students, I re-worked the set theoretical algorithms with set containers. The elegant solution requires using generate_n() algoirthm and inserter() function that we'll study on thursday. Here is the code: http://vega.cs.kent.edu/~mikhail/classes/cs3/Examples/STLAlgorithms/Iterators/setAlgorithmsSets.cpp Thanks, -- Mikhail