You are trying to pass an array? Arrays are always passed as pointers to their first member.
You will also need to pass in the array size, as in this example:
Code:
#include <iostream>
void PrintArray(int * array, int count){
for (int i = 0; i < count; i++)
std::cout << "[" << array[i] << "]";
std::cout << std::endl;
}
int main(){
int myArray[5] = {6,2,1,3,4};
PrintArray(myArray,5);
int * myArray2 = new int[6];
for (int i = 0 ;i < 6; i++)
myArray2[i] = i * 2 + 1;
PrintArray(myArray2,6);
delete[] myArray2;
}