This is the entire error screen:
C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h In function `_OutputIterator std::__copy(_RandomAccessIterator, _RandomAccessIterator, _OutputIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = char (*)[10], _OutputIterator = int]':
266 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h instantiated from `_OutputIterator std::__copy_aux2(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = char (*)[10], _OutputIterator = int]'
308 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h instantiated from `_OutputIterator std::__copy_ni2(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = char (*)[10], _OutputIterator = int]'
327 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h instantiated from `_OutputIterator std::__copy_ni1(_InputIterator, _InputIterator, _OutputIterator, __false_type) [with _InputIterator = char (*)[10], _OutputIterator = int]'
358 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h instantiated from `_OutputIterator std::copy(_InputIterator, _InputIterator, _OutputIterator) [with _InputIterator = char (*)[10], _OutputIterator = int]'
190 C:\Documents and Settings\myfirst.lastname\My Documents\Untitled1.cpp instantiated from here
247 C:\Dev-Cpp\include\c++\3.4.2\bits\stl_algobase.h invalid type argument of `unary *'
This is the line of code the error is coming from
-
copy(tempArray, inputArray, MAX_SIZE);
-
And this is the function
-
void copy(char temporaryArray1[][10], char previousarray[][10], int MAX_SIZE)
-
{
-
for(int i = 0; i < MAX_SIZE; i++)
-
{
-
for(int j =0; j <= 9; j++)
-
{
-
temporaryArray1[i][j] = previousarray[i][j];
-
}
-
}
-
}
-