Hello All,
I am trying to return three integers from the load function below. Right now, the program only returns the throughput variable. How do I use this function so it returns all three?
(I am trying to implement this in a larger project where I cannot call the load function more than once, so ideally I would be able to return all three variables with one call)
#include "utility.h"
#include <list>
#include <algorithm>
int load(int min, int max, int throughput);
int main ()
{
int min = 0;
int max = 0;
int throughput = 0;
min, max, throughput = load(3, 5, 10);
cout << "This is min " << min << endl;
cout << "This is max " << max << endl;
cout << "This is throughput " << throughput << endl;
}
int load(int min, int max, int throughput)
{
min = 13;
max = 15;
throughput = 20;
return min, max, throughput;
}