Sorry if I didn't make myself clear about findLowest. For simplicity's sake, you'll need 2 functions to do it, like this:
Code:
int min(int a, int b)
{
if(a < b)
return a;
else
return b;
}
 
int findLowest(int test1, int test2, int test3, (...))
{
return min(test1, min(test2, min(test3, min(test4, test5))));
}
That finds which is lower, test4 or test5, and compares that to test3, takes the lower one and compares it to test2, etc. until you get to test1, and after it compares against test1, you'll have the lowest number out of all 5.

>>void getValues(int, int, int, int, int);
Ooops, forgot to change that in my example. If you're going to use references for parameters, you'll need to update this line too (int& instead of just int).
void getValues(int&, int&, int&, int&, int&);

Code:
	else 
	{
		loop = false;
	}
	while(loop); //--\
}	  // <-----------/
The while(loop); is part of the do-while loop. Because of this, you'll need to put it after the closing curly brace of the do.
Code:
do
{
	(...)
	else 
	{
		loop = false;
	}
}while(loop);