Is there any reason why code passing multiple parameters with a vector
is not legal.
I have left out most of the unneccessary details to try and make the
problem clearer. Earlier in the program the vector is passed without any
problems, but it was the only parameter.
#include <iostream>
#include <vector>
using namespace std;
void CompareValues(vector<int>& cards,int,int); //prototype
void main()
{
}
void AnotherFunction()
{
CompareValues(vector<int>& any_vector, result, ct); //function call
//*** I am getting an error message here, saying
// "illegal use of this type as an expression"
}
void CompareValues(vector<int>& any_vector, int result, int ct)
{
}