function error

This is a discussion on function error within the C++ Programming forums, part of the General Programming Boards category; I can't get this to work!
the error-implicit declaration of function 'int getarray(...)'
Code:
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
...

also, getarray is void, it does not return a value, so array[MAX] = getarray() is wrong. also, getarray() takes a char argument, so you need to pass it something or do not use it. also, you can't do what you want to do with this same line. array[MAX] should give you out of bound errors as well, also with the line array[showall - 1].

#include <iostream.h>
#include <stdlib.h>
#include <string.h>
#define MAX 20
#define TAB /t
void getarray(char x[])
{
cout << "Enter an array" << endl;
cin >> x;
}
int main()
{
char array[MAX] ={0};
// Initalize the array to 0 just for fun (ie clear out all that junk)
int showall;
getarray(array); // Pass array so that it can be read in to by getarray()
for(showall=0; showall < MAX; showall++)
{
cout << array[showall];
cin.get();
// I have to admit I dont know C++ all that well but what is this for??
//It looks like its trying to get a char? is that to pause when ever you print a char?
}
system("PAUSE");
return 0;
}

My C has gotten rusty.. If i made any mistakes let me know.
Also I though that the code cin >> array would grab the array?
Im I wrong about that?