Joined
·
863 Posts
For my homework I have a list of data, v1, v2,v3. I need to sort these in ascending order using void sort. However, the handouts my professor gave me, and my book, make it hard to understand just how I have to set up the array. If anyone could help me grasp how to set it up I would be most thankful.
void sort (double& v1, double& v2, double& v3);
//POST: reorder values such that v1<=v2<=v3
void sort (double& v1, double& v2, double& v3);
//POST: reorder values such that v1<=v2<=v3