[Dev-C++] My function problem is solved.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Dane E. <DE...@pa...> - 2004-05-17 16:40:31
|
Thanks for helping me solve my function problem. Here is what I did
based on your input:
=20
1. I placed the function prototype after I declared my struct
2. my new function prototype reads:=20
void CreateEmployee (struct Emp [], int);
=20
3. In main I created the array with an int variable:
Emp Employee[qty];
=20
4. In the function headerline I changed it to read:=20
void CreateEmployee(Emp Employee[], int qty)
=20
No compile errors now.=20
=20
Best regards,=20
=20
Dane
=20
|