how store contents in vector , sort them without creating class? doing class project , requires not use class. books not helping.
this page has example, assuming can put of elements in vector @ once. if need put them in 1 @ time, use std::vector::push_back.