Here is the beginning of a program I am writing. As you can see it is incomplete, but I was checking my program for bugs and I got this error. I looked it up and found solutions such as "do not include brackets while calling a multidim array" I corrected and got this error. Any advice on how to solve it?
#include<iostream>
#include<string>
#include<cmath>
#include<cstdlib>
#include<fstream>
using namespace std;
void readEmployees();
void readPasswords();
void mixPasswords(string(*)[50], string[], string(*)[50]);
string employee[50][50];
string passwords[50];
string passwordsAssigned[50][50];
int main()
{
readEmployees();
readPasswords();
mixPasswords(employee, passwords, passwordsAssigned);
return 0;
}
void readEmployees()
{
int y;
ifstream fileInput;
fileInput.open("employees.txt");
for(int x = 0; x < 50; x++)
{
fileInput >> employee[x][y] >> employee[y][x];
y++;
}
}
void readPasswords()
{
ifstream fileInput;
fileInput.open("passwords.txt");
for(int x = 0; x < 50; x++)
{
fileInput >> passwords[x];
}
}
void mixPasswords(string employee(*)[50], string passwords[], string completed(*)[50])
{
}