Is this a homework problem or do you really just want to get the numbers sorted? If so, use std::sort from <algorithm>
daviddoria 334 Posting Virtuoso Featured Poster
daviddoria 334 Posting Virtuoso Featured Poster
daviddoria 334 Posting Virtuoso Featured Poster
iamthwee commented: No -2
Laurentius Dion commented: not bad +0